[wplug] regex help
Embery, Nathan
Nathan.Embery at crowncastle.com
Mon Jan 12 09:10:58 EST 2004
Close. That will match everything up until the last ">" that the string
contains, which might not be what you want. You probably want to add the
non-greedy modifier on like this:
/<td.*?>/
That should do it. Is this for PHP?
Nate
-----Original Message-----
From: James O'Kane [mailto:jo2y at midnightlinux.com]
Sent: Sunday, January 11, 2004 9:50 PM
To: WPLUG
Subject: Re: [wplug] regex help
On Sun, 11 Jan 2004, Russ Schneider wrote:
> I"m trying to come up with the regex that will find:
> <td 'any characters'>
Will this work?
/<td[^>]*>/
If I remember right with preg_replace, you need the //'s.
-james
_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug
More information about the wplug
mailing list