h
и s
, и диапазон чисел от 2
до 6
. Не забудьте включить соответствующие флаги в регулярное выражение. myRegex
должно соответствовать 17 элементам.
testString: 'assert(result.length == 17, "Your regex myRegex
should match 17 items.");'
- text: ''
testString: 'assert(myRegex.flags.match(/g/).length == 1, "Your regex myRegex
should use the global flag.");'
- text: ''
testString: 'assert(myRegex.flags.match(/i/).length == 1, "Your regex myRegex
should use the case insensitive flag.");'
```