In this quick JavaScript regex matching guide, you’ll learn how to test if a string matches a regular expression using the test() method.
Continue reading
Quick Tip: Testing if a String Matches a Regex in JavaScript
on SitePoint.
Source: Site Point
Republished by Blog Post Promoter