Please enable JavaScript.
Coggle requires JavaScript to display documents.
Mindmap 4: Chapter 10.1.2 (Regular Expressions (RegEx) (Patterns and…
Mindmap 4: Chapter 10.1.2
Regular Expressions (RegEx)
What They Are
Powerful and flexible language for finding/replacing/extracting content from text
Patterns and Explanations
0-9
RegEx looks for the exact digit or set of digits you specifcy
a-z A-Z
RegEx looks for the exact set of characters you specify, including uppercase and combinations of uppercase/lowercase
\d
ANY one digit (number)
\D
Any one character EXCEPT for digits (non-number)
\w
ANY alphanumeric character
\W
Any non-alphanumeric character
.
Any character
?
Character following question mark is optional
\s
ANY whitespace
\S
Anything BUT a whitespace
[ ]
Any alphanumeric character listen within the brackets
[^]
Any alphanumeric character not listed after the caret
|
Pattern on either side of the pipe ( | ) will constitute a match
^
Any pattern must begin from start of string being examined
$
Any pattern must be adjacent to the end of the string being examined
*
Zero or more repetitions
+
One or more repetitions
{m}
The pattern preceding the curly brackets should repeat "m" times
{m,n}
The pattern preceding the curly brackets should repeat "m" to "n" times
( )
Capture the strings that fit the pattern
RegexOne Practice