forked from javascript-tutorial/tr.javascript.info
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex/task.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Regexp for HTML colors | ||
# HTML renkler için düzenli ifade (regexp) | ||
|
||
Create a regexp to search HTML-colors written as `#ABCDEF`: first `#` and then 6 hexadecimal characters. | ||
`#ABCDEF` şeklinde yazılmış HTML-renklerini aramak için bir düzenli ifade oluşturun: önce `#` ve ardından 6 onaltılık karakterler gelmesi lazım. | ||
|
||
An example of use: | ||
Bir kullanım örneği: | ||
|
||
```js | ||
let regexp = /...your regexp.../ | ||
let regexp = /...senin duzenli ifaden.../ | ||
|
||
let str = "color:#121212; background-color:#AA00ef bad-colors:f#fddee #fd2 #12345678"; | ||
|
||
alert( str.match(regexp) ) // #121212,#AA00ef | ||
``` | ||
|
||
P.S. In this task we do not need other color formats like `#123` or `rgb(1,2,3)` etc. | ||
NOT: Bu görevde `#123` veya `rgb(1,2,3)` vb. diğer renk formatlarına ihtiyacımız yoktur. |