aebstract Posted March 1, 2010 Share Posted March 1, 2010 $article = eregi_replace("^([[(a-zA-Z0-9.)]]{1,})", "", $article); Trying to get the hang of regex, but I'm failing atm. Need to remove everything from $article that matches [[anythinggoeshere.anyextension]] this pattern. The above code doesn't do anything Link to comment https://forums.phpfreaks.com/topic/193803-regex/ Share on other sites More sharing options...
Psycho Posted March 1, 2010 Share Posted March 1, 2010 I'm not following what you are trying to achieve with "[[anythinggoeshere.anyextension]]". Are you wanting to replace any text that appears within double brackets that has a period in it? Try providing some real exampes of the search text and what, exactly, you want replaced. Link to comment https://forums.phpfreaks.com/topic/193803-regex/#findComment-1020094 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.