looking for regex format
-
looking for help with regex format i need only numbers with this format: 05######## 0######## and 05#-####### 0#-#######
wouldnt that be something like: ^05[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$ ^0[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$ ^05[0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9]$ ^0[0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9]$ i think :)
"mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"
-
looking for help with regex format i need only numbers with this format: 05######## 0######## and 05#-####### 0#-#######
(We have a Regular Expression forum.) How about:
05?\d-?\d{7}
-
looking for help with regex format i need only numbers with this format: 05######## 0######## and 05#-####### 0#-#######
PIEBALDconsult has given you the answer, but he is also correct: there is a regex forum[^] which is more appropriate. If you are going to use regexes in future (or you want to understand the one PIEBALDconsult gave you), get a copy of Expresso [^] - it's free, and it examines and generates Regular expressions.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."