thelordoftherings
Programmer
Hello,
I need to validate a certain String, it suppose to be a cellular number at this format: <prefix>-<number>
the <prefix> can be "052", "054", "050" and "057" only.
the <number> should contain excactly 7 digits, it must be 7 and must be digits.
A legal number for example: 052-2285698
Can anyone please help me acheive this using regular expressions?
Regards,
Roy
I need to validate a certain String, it suppose to be a cellular number at this format: <prefix>-<number>
the <prefix> can be "052", "054", "050" and "057" only.
the <number> should contain excactly 7 digits, it must be 7 and must be digits.
A legal number for example: 052-2285698
Can anyone please help me acheive this using regular expressions?
Regards,
Roy