Re: regex help?

From: Date: Mon, 21 Jul 2003 11:00:53 +0000
Subject: Re: regex help?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156040@lists.php.net to get a copy of this message
hi john, try a regex like this: '/<td[^>]*>(.*)</td>/i' ciao SVEN John Herren wrote: > Can't seem to get this to work... > > trying to yank stuff xxx from > <TD class=a8b noWrap align=middle width=17 bgColor=#cccccc>xxx</TD> > > and stuff yyy from > > <TD class=a8b noWrap width=100>&nbsp;yyy</TD> > > preg_match("|&nbsp;(.*)</TD>$|i", $l, $regs); > > works for the second example, even though it isn't the correct way, > but nothing works for for me for the first example. > > Any help is appreciated!

« previous php.general (#156040) next »