I want to make a pretty lean phone validation - digits, hyphens and spaces, no less than 6 symbols.
\d+[- ]
does what I want but I want to check the length too. Obviously, (\d+[- ]){6,15}
doesn't work but I imagine it to be something similar. I'd like to limit the length of the whole string too.
Some things I'd like to be valid:
- 0123456789
- 1-800-555-2468
- 1 234 4567