[Phpmyadmin-devel] preg vs. ereg

Robin Johnson robbat2 at fermi.orbis-terrarum.net
Sun Aug 19 04:12:43 CEST 2001

On Sat, 18 Aug 2001, Ignacio Vazquez-Abrams wrote:
> Does this work?
>   $sql=eregi_replace('([^a-zA-Z0-9])'.$data[1].'\.', '\1 '.$data[0].'.',
> $sql);

Yes it does thanks!
Regex have never been my strong suit.

Robin Hugh Johnson
QTOD: "I used to be an idealist, but I got mugged by reality."
E-Mail     : robbat2 at orbis-terrarum.net
ICQ#       : 30269588 or 41961639
Home Page  : http://www.orbis-terrarum.net/
Time Zone  : Pacific Daylight (GMT - 8)
geekcode.com ebb.org/ungeek
GCS/M/IT d-(+) s+:- a--- C++++ 
U++++ L++++ P--(+) W++ K++ PS+ 
N++ w--- O E---- M-(+) V-- Y++ 
PE++ PGP++ t-- 5 X+ R tv- b+++ 
D++ G++ e(*) h! r-- !y+
------END GEEK CODE------
-----PGP INFO----
Key ID:0x7E20DFA1
5447C73A 30FB144C 89521B69 2D6A615E 7E20DFA1
----PGP INFO-----

More information about the Developers mailing list