Regex validation

Greetings everyone,

I am attempting to use a regular expression (regex) to validate a number field that only accepts values from 0 to 10.

^(10|[0-9])$

However, it appears that the current regex only accepts the values of 0, 1, 9, and 10, but does not accept numbers from 2 to 8. I have tested the regex on this website https://regex101.com/ and it seems to be correct. Could this issue be a bug within the system? Thank you for your assistance.

Hey Ron,
That’s definitely something to ship over to support in a ticket to support@knack.com if you’re able.

We’re a bit behind on responding to tickets right now and we’re answering them in the order they come in, but we’ll be able to tackle this from there.

1 Like