From: Erik Terpstra Date: 2002-02-13T23:14:24+09:00 Subject: Re: simple XML parsing (greedy / non-greedy > Thanks ... I see that that works. But I don't see why. Once the ? is in > effect, does the whole regexp become non-greedy and quit on the first > match? (This must be approximately the case, or it wouldn't be working.) > > Anyway, thanks ... if I treat it as magic it'll work. > > What should I have read to know this? Zvon's Regular expression tutorial is very helpful: http://zvon.org/other/PerlTutorial/Output/contents.html Or more specific: http://zvon.org/other/PerlTutorial/Output/example13.html