Results 1 to 7 of 7
Feb 22, 2012, 05:48 #1
- Join Date
- Mar 2005
- 0 Post(s)
- 0 Thread(s)
preg_match to strip link from content
I am using this bit of code to identify certain links within my content and swap them for another link.
$re1='(\\[url\\])'; # Square Braces 1
$re2='.*'; # Non-greedy match on filler
$articleContent .=preg_replace("/".$re1.$re2.$re3."/i", '<a href="http://www.lesson-ology.com/content.php?whereto=416">Sign Up For Access</a>', $resource);
What would the reg_ex look like to accomplish this?