Jump to content


Photo

Regex


  • This topic is locked This topic is locked
2 replies to this topic

#1 GeorgeMoney

GeorgeMoney
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 24 September 2006 - 05:20 AM

Is it possible to use a function in the regex itself? this doesnt work:

$datr = preg_replace("/\[SC\](.*)\[\/SC\]/i", '<a name="'.myurlen("$1").'"></a>', $datr);

--GeorgeMoney

#2 alpine

alpine
  • Members
  • PipPipPip
  • Advanced Member
  • 756 posts
  • LocationNorway

Posted 24 September 2006 - 05:26 AM

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.

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 24 September 2006 - 05:35 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users