Entered a valid regular expression but the validation won`t allow saving the config.
Also sometimes save on the page does not work. Returns the following error
Entered a valid regular expression but the validation won`t allow saving the config.
Also sometimes save on the page does not work. Returns the following error
Hi Andinet, I believe that regex is actually not valid. If you plug it into a regex tester like https://regex101.com, it'll confirm that. Their explanation is
- Character range is out of order
That's because regexps operate on individual characters, not numbers, so the character class [6-10]
is interpreted as "single character either in the range from 6 to 1, or 0". The range 6 to 1 is of course invalid.
Assuming you want to match the strings 6, 7, 8, 9, and 10, this should work:
^(?:[6-9]|10)$