I struggle to change my current pattern:
^[\\\/0-9]{5,10}$
Which checks if input comprises of 5-10 numbers, slashes or backslashes. I would like to limit total slash and backslash count to two at most.
e.g. 12345/\\9
should not be valid after the change:
I tried dissecting them into a separate group like so ^([\\\/]{0,2}[0-9]){5,10}$
but am getting wrong matches.