Regular Expressions Reference Guide

Website Address

(?(https?://)?([-w]+(.w[-w]*)+|([a-z0-9]([-a-z0-9]*[a-z0-9])?.))+(com|edu|biz|gov|in(t|fo)|mil|net|org|[a-z][a-z].[a-z][a-z])S*)

Email Address

(?[A-Za-z0-9!#$%&’*+/=?^_`{|}~-]+(?:.[A-Za-z0-9!#$%&’*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)

Phone

(?(d{3})s*d{3}[s-]d{4})($|D)
(?d{3}[s.-]*d{3}[s.-]*d{4})($|D)

Leave a Reply