SyntaxFix
Write A Post
Hire A Developer
Questions
Use /youregexp/.test(yourString) if you only want to know whether your string matches the regexp.
/youregexp/.test(yourString)