$str = "your url here"; $str = preg_replace("\[[uU][rR][lL]\](.*?)\[/[uU][rR][lL]\]", "<a Href='$1'>$1</a>" ,$str);
Search found 2 matches
Re: BB code
For any url :
- Thu Dec 29, 2011 1:17 am
- Forum: PHP
- Topic: Need regex codes for all programming languages..
- Replies: 1
- Views: 398
Need regex codes for all programming languages..
Look guys i'm looking for php based regex codes for all programming languages.
like
like
- HTML
- PHP
- Java
- VB
- C#
- CSS