HTML5 CSS - 정규 표현식 연습 사이트
https://regexr.com/45e2v
#으로 시작하는 hexa값
- [] : Character set. Match any chracter in the set.
- [0-9a-fA-F] : 숫자와 모든 알파벳을 포함하는 표현식
- 0-9 : Range. Matches a character in the range "0" to "9" (char code 47 to 57). Case insensitive.
- a-f : Range. Matches a character in the range "0" to "9" (char code 97 to 102). Case insensitive.
- A-F : Range. Matches a character in the range "A" to "F" (char code 65 to 70). Case insensitive.
- "+" : Quantifier. Match 1 or more of the preceding token.
rgb값
- ? : Quantifier. Match between 0 and 1 of the preceding token.
- \s : Whitespace. Matches any whitespace character (space, tabs, line breaks).
- . : Escaped character. Matches a "." character (char code 46)
- {1, 6} : Quantifier. Match between 1 and 6 of the preceding token
- () : Capturing group #1. Groups multipel tokens together and creates a capture group for extracting a substring or using a backereference.