I have a requirement that need to write a regular expression to accept only ### ##
format. Three numbers, a single space and two more numbers.
I've tried: \d{3}\s?\d{2}$
Can someone help
I have a requirement that need to write a regular expression to accept only ### ##
format. Three numbers, a single space and two more numbers.
I've tried: \d{3}\s?\d{2}$
Can someone help
Many ways to do it I guess. This is one of them:
^[\d]{3}[\s]{1}[\d]{2}$