Regular expression only accepts 0 or 5.
Is there a regex expression to evaluate that?
You can use either
"". The first is an alternative, the second is a character class. They will behave identically. See the documentation for
Pattern for more information on the building blocks for regular expressions.