understanding-json-schema
understanding-json-schema copied to clipboard
lazy regex occurence number
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.