In: Computer Science
Design a regular expression to filter out those numbers that are stored in the standard format “+00-0-0000-0000”.
Examples of valid results are:
+61-3-9214-4980 and +61-3-9285-7706
This can be done using '+' followed by 2 digits
followed by '-' followed by a digit, followed by a '-', followed by
4 digits and again followed by a '-', followed by 4
digits.
This is given using the Regex :
\+\d{2}-\d-\d{4}-\d{4}
Screenshots: