RegEx

RegEx

After reading the grammar once, practice on the site below and it’s done. It’s not as difficult as we think.
RegExr is an online tool to learn, build, & test Regular Expressions
RegexOne : Learn Regular Expressions with simple, interactive exercises.

한국어 무료 코스인데 꽤 괜찮다. https://programmers.co.kr

Groups and ranges

CharacterMeaning
|or
()group
[]charset, any character in parentheses
[^]negative character set, when it is not any statement in parentheses
(?:)find but don’t remember

Quantifiers

CharacterMeaning
?zero or one
*zero or more
+one or more
{n}repeat n times
{min,}min
{min,max}min, and max

Boundary-type

CharacterMeaning
\bword boundary
\Bnot a word boundary
^start of sentence
$end of sentence

Character classes

CharacterMeaning
\non-special character
.any character (except newline characters)
\ddigit
\Dnot a digit
\wword
\Wnot a word
\sspace
\Snot a space



https://github.com/dream-ellie


© 2022. Byungchan Park. All rights reserved.