Skip to content

Commit 9cda561

Browse files
authored
Merge pull request #1 from MFry/MFry-patch-2
Updated #1 task.md
2 parents 0235308 + 950af8c commit 9cda561

File tree

1 file changed

+2
-2
lines changed
  • 5-regular-expressions/09-regexp-groups/1-find-webcolor-3-or-6

1 file changed

+2
-2
lines changed

Diff for: 5-regular-expressions/09-regexp-groups/1-find-webcolor-3-or-6/task.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Find color in the format #abc or #abcdef
22

3-
Write a regexp that matches colors in the format `#abc` or `#abcdef`. That is: `#` followed by 3 or 6 hexadimal digits.
3+
Write a RegExp that matches colors in the format `#abc` or `#abcdef`. That is: `#` followed by 3 or 6 hexadecimal digits.
44

55
Usage example:
66
```js
@@ -11,4 +11,4 @@ let str = "color: #3f3; background-color: #AA00ef; and: #abcd";
1111
alert( str.match(reg) ); // #3f3 #AA0ef
1212
```
1313

14-
P.S. Should be exactly 3 or 6 hex digits: values like `#abcd` should not match.
14+
P.S. This should be exactly 3 or 6 hex digits: values like `#abcd` should not match.

0 commit comments

Comments
 (0)