Is there a simple way to ignore whitespace between digits within a regular expression?
I want a RegEx to match on any 10 digit number, including numbers with spaces between them.
For example, the following 3 examples would match:
- 4874526395
- 4874 526 395
- 48745 26395
^\d{10}$
is the current regular expression, and expecting I'll need to use \s
somewhere but unsure how.