View Subcategory

Check if a string matches a regular expression

Display "ok" if "Hello" matches /[A-Z][a-z]+/

Check if a string matches with groups

Display "two" if "one two three" matches /one (.*) three/