Skip to content

Commit 662f519

Browse files
authored
Update solution.md
1 parent 9fe85ae commit 662f519

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/08-regexp-character-sets-and-ranges/1-find-range-1

1 file changed

+1
-1
lines changed

9-regular-expressions/08-regexp-character-sets-and-ranges/1-find-range-1/solution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Answers: **no, yes**.
55
```js run
66
alert( "Java".match(/Java[^script]/) ); // null
77
```
8-
- Yes, because the regexp is case-insensitive, the `pattern:[^script]` part matches the character `"S"`.
8+
- Yes, because the part `pattern:[^script]` part matches the character `"S"`. It's not one of `pattern:script`. As the regexp is case-sensitive (no `pattern:i` flag), it treats `"S"` as a different character from `"s"`.
99
1010
```js run
1111
alert( "JavaScript".match(/Java[^script]/) ); // "JavaS"

0 commit comments

Comments
 (0)