[Tutor] non-greedy matching

spir denis.spir at free.fr
Fri Jan 30 12:47:59 CET 2009


imagine you need to match such a pattern:

pat : (@@ [charset]* @@) | [charset]*
... where [charset] has to include '@'

My questions are:
* Is there any other way than using a non-greedy form of [charset]* ?
* How, actually, is non-greedy character string matching performed?

Thank you,
la vida e estranya

More information about the Tutor mailing list