Help - Search - Member List - Calendar
Full Version: e pattern modifier
WorkTheWeb Forums > Webmaster Resources > PHP Help
Support our Sponsors!
steve
Can someone give me an example of using the e pattern modifier in
php regex:
http://www.php.net/manual/en/reference.pcr...n.modifiers.php

Thanks in advance. Wish the manual had some examples on this one!

--
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-modifi...pict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=809468

R. Rajesh Jeba Anbiah
steve wrote:
QUOTE
Can someone give me an example of using the 'e' pattern modifier in
php regex:
http://www.php.net/manual/en/reference.pcr...n.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

steve
"R. Rajesh Jeba Anb1" wrote:
QUOTE
steve wrote:
Can someone give me an example of using the 'e' pattern
modifier in
php regex:
http://www.php.net/manual/en/reference.pcr...n.modifiers.php

Thanks in advance.  Wish the manual had some examples on
this one!

http://in2.php.net/preg_replace

--
&lt;?php echo 'Just another PHP saint'; ?&gt;
Email: rrjanbiah-at-Y!com    Blog:
http://rajeshanbiah.blogspot.com

Thanks, Rajesh. Yes, I see that now.

steve

--
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-modifi...pict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=810305

steve
"R. Rajesh Jeba Anb1" wrote:
QUOTE
steve wrote:
Can someone give me an example of using the 'e' pattern
modifier in
php regex:
http://www.php.net/manual/en/reference.pcr...n.modifiers.php

Thanks in advance.  Wish the manual had some examples on
this one!

http://in2.php.net/preg_replace

--
&lt;?php echo 'Just another PHP saint'; ?&gt;
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-modifi...pict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=810669


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.