understanding-json-schema icon indicating copy to clipboard operation
understanding-json-schema copied to clipboard

lazy regex occurence number

Open wyfo opened this issue 5 years ago • 0 comments

In the specifications about regex, in the last four lines :

{x}: Match exactly x occurrences of the preceding regular expression.
{x,y}: Match at least x and at most y occurrences of the preceding regular expression.
{x,}: Match x occurrences or more of the preceding regular expression.
{x}?, {x,y}?, {x,}?: Lazy versions of the above expressions.

a lazy version of {x} is mentioned. However, this lazy version has no meaning because {x} matches exactly x occurrences.

wyfo avatar Apr 30 '20 19:04 wyfo