Skip to content

Labs 1

Challenge: Match Phone Numbers

  1. Paste this at the top of the test string:

YES
800 555-1234
212 777.6789
Phone: 800 555-6879.

NO
1234567891011
abc def-ghij
800 def.ghij
Phone: 1234567891011
Create an RE that matches the phone numbers in the text under YES but not those under NO.


Prev -- Up -- Next