NothanUmber ·
would be nice if the cpars module would optionally be able to use non greedy matching.
example:
if you apply the ruleset:
(.*)(a text)(.*)
to the string "that is a text, at least it looks like one" it would be parsed as
(that is a text, at least it looks like one)()() from a greedy parser and as
(that is )(a text)(, at least it looks like one) from a non greedy one.
That way many things can be expressed much simpler.
Greetings, NothanUmber