10+ regular expressions for efficient web development  by Jean-
Baptiste Jung. 27 Comments -  In programming, regular
expressions are a very useful tool designed to validate, search,
and match text patterns. In this article, I have compiled more
than 10 incredibly useful regular expressions, for any language,
that will probably be very beneficial to you.  Validate an URL
Is a particular url valid? The following regexp will let you
know.  /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w
\?=.-]*)*\/?$/  Source: http://snipplr.com/view/19502/validate-
a-url/  Validate US phone number  This regexp will verify that a
US phone number is valid.   Source:
http://snippets.dzone.com/posts/show/597  Test if a password is
strong  Weak passwords are one of the quickest ways to get
hacked. The following regexp will make sure that:    • Passwords
will contain at least (1) upper case letter   • Passwords will
contain at least (1) lower case letter   • Passwords will
contain at least (1) number or special character   • Pass