How do you search a string for a pattern

Posted by Andre Scott | Updated on

You can use the test() method of regular expression in order to search a string for a pattern, and return true or false depending on the result.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers