blob: c79397e0cd3b2a83c00e39cf398e95c997b99420 [file] [log] [blame]
/foo bar/
/foo/gimyu,
/[\[\]]{2,4}(?:foo)*/;
/foo"test"bar/
/foo\//
1 / 4 + "/, not a regex";
/ '1' '2' '3' '4' '5' /
----------------------------------------------------
[
["regex", "/foo bar/"],
["regex", "/foo/gimyu"], ["punctuation", ","],
["regex", "/[\\[\\]]{2,4}(?:foo)*/"], ["punctuation", ";"],
["regex", "/foo\"test\"bar/"],
["regex", "/foo\\//"],
["number", "1"], ["operator", "/"], ["number", "4"], ["operator", "+"], ["string", "\"/, not a regex\""], ["punctuation", ";"],
["regex", "/ '1' '2' '3' '4' '5' /"]
]
----------------------------------------------------
Checks for regex.