Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Regex CodePurposeValid ValuesInvalid Values
^\(\d{3}\) \d{3}-\d{4}$


To format phone numbers as (###) ###-####(888) 123-4567

8881234567

888-123-4567

888 123-4567

(888)1234567

(888)123-4567

^[a-z.0-9_-]{3,30}@abc\.lmno\.edu$

To format email addresses and make sure that:

  • The handle (before the @ sign) only has letters and numbers
  • Make sure the ending is to a specific address which is @abc.lmbolmno.edu

You can use this and replace the abc, lmno, and edu with the valid email address for you clients

alliebrown89@abc.lmno.edu

allie!brown89@abc.lmno.edu

alliebrown89@def.lmno.edu  

alliebrown89@abc.pqrs.edu  

alliebrown89@abc.lmno.com  

...