Next: , Previous: , Up: srfi regexps syntax   [Index]


2.39.7.8 Non–greedy patterns

The following patterns are only supported if the feature ‘regexp-non-greedy’ is provided.

(non-greedy-optional sre ...)
(?? sre ...)

Non–greedy pattern, matches 0 or 1 times, preferring the shorter match.

(non-greedy-zero-or-more< sre ...)
(*? sre ...)

Non–greedy Kleene star, matches 0 or more times, preferring the shorter match.

(non-greedy-repeated m n sre ...)
(**? m n sre ...)

Non–greedy Kleene star, matches m to n times, preferring the shorter match.