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
");'
```