I want to check that a String is pipe-generated numbers. There should be numbers between pipes.
- Valid Strings examples:
300
,300|600
. - Invalid Strings examples:
300||||600
I tried ^([\d|\d])*$
. However, this still said that 300||||600
is a valid String.