As to your second question, this seconds AM's first two reading recommendations. You're looking to learn the difference between "lazy quantifiers" and "possessive quantifiers." If it's easier for you, try reading "Mastering Regular Expressions, Friedl (O'Reilly)" or the "Regular Expressions Pocket Reference, Stubblebine (O'Reilly)"
In reply to Re^2: Regexp doubts
by ww
in thread Regexp doubts
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |