I'm looking for a regular expression to match a Dutch phone number. These are the formatting requirements:
- Should start with 0
- Contains maximum of 1 (optional) dash "-" character, for now it does not matter where it is, as long as it's not the first character
- Total length 10 or 11 characters
This is what I've come up with so far:
^0+-{1}?([0-9]{10,11})$
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…