In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
("..s.c.o.t.t..") wrote:

> PS: if anyone out there is more familiar with PHP/regexps than i am,
> could you please send me an email explaining how to get global
> pattern matching (ala perl's s///g command) in PHP??
> i cannot seem to find any switches for ereg that make it match global

Use the Perl Compatible Regular Expressions (PCRE), like preg_replace.  Not 
only will you find the syntax very familiar, but the PRCE functions are 
also faster than their ereg equivalents.

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to