RE: [PHP] Regular expressions
| From: | Chrome | Date: | Mon, 16 Oct 2006 20:24:19 +0000 |
| Subject: | RE: [PHP] Regular expressions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243221@lists.php.net to get a copy of this message | ||
[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'm sure I'll be corrected if I'm wrong :)
Dan
--
http://chrome.me.uk