GeorgeMoney Posted September 24, 2006 Share Posted September 24, 2006 Is it possible to use a function in the regex itself? this doesnt work:[code]$datr = preg_replace("/\[SC\](.*)\[\/SC\]/i", '<a name="'.myurlen("$1").'"></a>', $datr);[/code] Link to comment https://forums.phpfreaks.com/topic/21837-regex/ Share on other sites More sharing options...
alpine Posted September 24, 2006 Share Posted September 24, 2006 you have double posted, both here and on the regex-board - this is not allowed, you would be better off continuing in the regex group with this. Link to comment https://forums.phpfreaks.com/topic/21837-regex/#findComment-97489 Share on other sites More sharing options...
wildteen88 Posted September 24, 2006 Share Posted September 24, 2006 Thread closed.Please do not post multiple instances of the same thread in different forums. Plus the Regex forum is the correct forum for this too. Link to comment https://forums.phpfreaks.com/topic/21837-regex/#findComment-97643 Share on other sites More sharing options...
Recommended Posts