userCheck以适合上面列出的约束。 JACK匹配
testString: 'assert(userCheck.test("JACK"), "Your regex should match JACK");'
- text: 你的正则表达式不应该与J匹配
testString: 'assert(!userCheck.test("J"), "Your regex should not match J");'
- text: 你的正则表达式应该与Oceans11匹配
testString: 'assert(userCheck.test("Oceans11"), "Your regex should match Oceans11");'
- text: 你的正则表达式应该与RegexGuru匹配
testString: 'assert(userCheck.test("RegexGuru"), "Your regex should match RegexGuru");'
- text: 你的正则表达式不应该与007匹配
testString: 'assert(!userCheck.test("007"), "Your regex should not match 007");'
- text: 你的正则表达式不应该匹配9
testString: 'assert(!userCheck.test("9"), "Your regex should not match 9");'
```