[ create a new paste ] login | about

Link: http://codepad.org/whw81bwa    [ raw code | output | fork ]

PHP, pasted on Feb 15:
1
2
3
4
5
6
7
8
9
10
<?php
$linkString="The Following is a link to google <a class='links' href='http://google.com'>

http://google.com
</a>
";

//Remove link tag:

echo preg_replace('/<[^>]*>/','',$linkString);


Output:
1
2
3
4
The Following is a link to google 

http://google.com



Create a new paste based on this one


Comments: