By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,107 Members | 1,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,107 IT Pros & Developers. It's quick & easy.

e pattern modifier

P: n/a
Can someone give me an example of using the e pattern modifier in
php regex:
http://www.php.net/manual/en/referen....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-...ict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=809468
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
steve wrote:
Can someone give me an example of using the 'e' pattern modifier in
php regex:
http://www.php.net/manual/en/referen....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

Jul 17 '05 #2

P: n/a
"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/referen....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-...ict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=810305
Jul 17 '05 #3

P: n/a
"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/referen....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-...ict233538.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=810669
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.