SimpleRegex / SRL-PHP

Simple Regex Language
https://simple-regex.com
MIT License
1.8k stars 112 forks source link

Problems with usage of `uppercase letter` #17

Closed mandarg closed 8 years ago

mandarg commented 8 years ago

The query

begin with (digit once),
any of (letter, digit, uppercase letter) once or more,
must end

fails to compile, with the error

The SRL Query contains an error: Invalid parameter given for digit.

But the same query, if rewritten as

begin with (digit once),
any of (uppercase letter, letter, digit) once or more,
must end

...seems to compile correctly, and matches my test string 1ABCdef. From the error message, I guess uppercase is being passed as a parameter to digit in the first example?

KarimGeiger commented 8 years ago

Thank you for reporting!