I have the following regex:
/[0-9\s-.]{8,10}/
It's purpose is for me to detect if user is entering anything that might be a phone number (Australian) into a description area and advise them to not do so. It works quite well to match numbers that may have spaces dots or hyphens in them.
Unfortunately it will also match stuff like "-----------". How can I make a digit required for a match and the other types optional?