On Wednesday 09 May 2001 16:14, Luiz Vitor wrote:
> It's still not working.
> I'm using the pattern ([^<foo>]*) and I'm getting the first match
> correct, but it's not getting all the other matches.

[^<foo>] means "any character except '<', 'f', 'o' and '>'"

You're looking for something like this:

$Text = preg_replace ('/<(foo)>(.*?)<\/\\1>/', '$2', $Text);

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

REALITY.SYS corrupted ... reboot Universe [Y,n]?

--
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