Test: test.match(/[^/]*/); `[^/]` is still part of the regex string, but coderay sees the `/` as the regex end delimiter.