Dear all,
I know this is a bit much asked but please help me define a regex for a phone number mask. I just don't know how to do this.
I have a texteditor which should be able to support two different phone masks, with the user being able to fill in whatever applies
- 042 342 10 76
- 12423 342 10 76
Each number consists of 4 parts, as follows:
part1: 3-5 digits, if not all 5 digits are used no placeholder should be shown once the text edit looses focus (the displayed value should be just like 1)
part 2: always 3 digits
part 3 + 4: each always 2 digits
The best i was able to achieve was using a simple editor, but that resulted in 1) looking like: __042 342 10 76 or 042__ 342 10 76 when not edited, instead of 042 342 10 76.
Thank you so much for your help!