File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
9-regular-expressions/09-regexp-quantifiers/2-find-html-colors-6hex Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- # Regexp for HTML colors
1+ # HTML renkler için düzenli ifade (regexp)
22
3- Create a regexp to search HTML-colors written as ` #ABCDEF ` : first ` # ` and then 6 hexadecimal characters .
3+ ` #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 .
44
5- An example of use :
5+ Bir kullanım örneği :
66
77``` js
8- let regexp = / ... your regexp ... /
8+ let regexp = / ... senin duzenli ifaden ... /
99
1010let str = " color:#121212; background-color:#AA00ef bad-colors:f#fddee #fd2 #12345678" ;
1111
1212alert ( str .match (regexp) ) // #121212,#AA00ef
1313```
1414
15- P.S. In this task we do not need other color formats like ` #123 ` or ` rgb(1,2,3) ` etc .
15+ NOT: Bu görevde ` #123 ` veya ` rgb(1,2,3) ` vb. diğer renk formatlarına ihtiyacımız yoktur .
You can’t perform that action at this time.
0 commit comments