userCheck
以适合上面列出的约束。
JACK
。
testString: assert(userCheck.test("JACK"));
- text: 你的正则表达式不应该匹配J
。
testString: assert(!userCheck.test("J"));
- text: 正则表达式应该匹配 Jo
。
testString: assert(userCheck.test("Jo"));
- text: 你的正则表达式应该匹配Oceans11
。
testString: assert(userCheck.test("Oceans11"));
- text: 你的正则表达式应该匹配RegexGuru
。
testString: assert(userCheck.test("RegexGuru"));
- text: 你的正则表达式不应该匹配007
。
testString: assert(!userCheck.test("007"));
- text: 你的正则表达式不应该匹配9
。
testString: assert(!userCheck.test("9"));
- text: 正则表达式不应该匹配 A1
。
testString: assert(!userCheck.test("A1"));
- text: 正则表达式不应该匹配 BadUs3rnam3
。
testString: assert(!userCheck.test("BadUs3rnam3"));
- text: 正则表达式应该匹配 Z97
。
testString: assert(userCheck.test("Z97"));
- text: 正则表达式不应该匹配 c57bT3
。
testString: assert(!userCheck.test("c57bT3"));
```