I do not know regular expressions and going crazy to find one that accepts formats consisting on numbers and slash. For example:
This should work:
^\d+(\/\d+)*$
Look at the examples.
This means:
^) with a one or more digit (\d+)(..)*) followed by a slash and one or more digit (\/\d+), even many times (* means from 0 to many)$).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With