* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
1.7 KiB
1.7 KiB
id, title, challengeType, videoUrl, localeTitle
| id | title | challengeType | videoUrl | localeTitle |
|---|---|---|---|---|
| 587d7db6367417b2b2512b98 | Match Single Characters Not Specified | 1 | 匹配未指定的单个字符 |
Description
negated character sets 。要创建negated character set ,请在caret括号后面和不想匹配的字符前放置一个caret ( ^ )。例如, /[^aeiou]/gi匹配所有不是元音的字符。请注意字符之类的. , ! , [ , @ , /和空格匹配 - 否定元音字符集仅排除元音字符。 Instructions
Tests
tests:
- text: 你的正则表达式<code>myRegex</code>应匹配9项。
testString: assert(result.length == 9);
- text: 你的正则表达式<code>myRegex</code>应该使用全局标志。
testString: assert(myRegex.flags.match(/g/).length == 1);
- text: 你的正则表达式<code>myRegex</code>应该使用不区分大小写的标志。
testString: assert(myRegex.flags.match(/i/).length == 1);
Challenge Seed
let quoteSample = "3 blind mice.";
let myRegex = /change/; // Change this line
let result = myRegex; // Change this line
Solution
// solution required