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