Re: Regular expressions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, October 16, 2006 4:01 pm, Curt Zirzow wrote:
> That makes me wonder.. according to the docs U inverts greediness, if
> you have...
> /foo.*?bar/U
>
> does that make .*? a greedy .*

I believe I stubbed my toe on that fact once, yes...

I always manage to mess up the greedy/ungreedy stuff, and then throw
up my hands and try to use an expression to look for a specific
character to be there or not there, and then I don't have to worry
about the greedy stuff as much...

Sometimes, though, you have to grit your teeth and dink with ? and U
until it works.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux