|
Posted by steve on 06/21/05 00:36
"R. Rajesh Jeba Anb1" wrote:
> steve wrote:
> > Can someone give me an example of using the 'e' pattern
> modifier in
> > php regex:
> > http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
> >
> > Thanks in advance. Wish the manual had some examples on
> this one!
>
> http://in2.php.net/preg_replace
>
> --
> <?php echo 'Just another PHP saint'; ?>
> Email: rrjanbiah-at-Y!com Blog:
> http://rajeshanbiah.blogspot.com
I tried to use a function with the e flag but it did not work (I had
no problem using a built-in function).
So I used preg_replace_callback instead, and everything works like a
charm.
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/PHP-pattern-modifier-ftopict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=810669
Navigation:
[Reply to this message]
|