On 10/16/06, Chrome <[EMAIL PROTECTED]> wrote:
[snip]
? means "maybe" in some other place in PCRE.  Or maybe that's POSIX.
Never have figured that one out.
[/snip]

? directly after an expression is equivalent to {0,1} (maybe) but after a
quantifier (*, +, {}) means ungreedy

I kind of talked about this in the reply to richard the .*? is exactly
the same as doing .*(?U)

an inline modifier to the previous expression.

That makes me wonder.. according to the docs U inverts greediness, if
you have...
/foo.*?bar/U

does that make .*? a greedy .*

Curt.

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

Reply via email to