Jump to content

Archived

This topic is now archived and is closed to further replies.

GeorgeMoney

Regex

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.