Please enable JavaScript.
Coggle requires JavaScript to display documents.
Regular Expression (RegEx) (. (Command: a.c (aGC (found), a-c (found)),…
Regular Expression (RegEx)
Finding
Replacing
Extracting
Microsoft (MS) Word
Searching for content
Command: 555
Example text: (555) 932-9382
Found
Example text: (720) 828-8382
Not found
Command: abc
abc Plumbing
Found
ab1 Plumbing
Not found
Escape character
Backslash \
\d
Not looking for a d
Any digit
All combos of 3 digits
\d\d\d
Command: a\dc
a1c
Found
a5c
Found
abc
Not found
\D
Find any character except for digits
Command: a\DC
aGc
Found
a-c
Found
a1c
Not found
\w
Digits (0-1)
Letters (a-z)
Command: a\wc
aGc
found
a-c
not found
a1c
found
\W
Any non-alphanumeric number (example: !%*)
Command: aW\c
a-c
Found
aGc
Not found
a @ c
Foumd
/s
Any whitespace
/S
Any non-whitespace
.
Catches all characters
Greatest scope
Command: a.c
aGC
found
a-c
found
?
Means character directly preceding is not necessary for a match
Command: ab?c
abc
Found
abd
Found
adb
Not found
Square brackets
Specification for allowable characters
Command: a[GA}c
aGc
Found
abc
Found
a @ c
Not found
^
INSIDE of brackets caret at starts specifies that the characters listed cannot exist
Command: A[^Ga]c
aGc
Not found
abc
Not found
aTC
Found
Specifies the beginning of the string
Command: ^ab
abc
Not found
aab
Not found
bcab
Found
|
Pattern on the left of the pipe or the patter on the right is acceptable
Command: ab|cd
abc
Found
adc
Not found
bcd
Found
$
End of the string being exaimed
Command: ab$
aab
Found
abc
Not found
bcab
Found
0-9
Looks for exact digit or set of digits specified
a-z or A-Z
Looks at exact set of characters you specify
+
Command: ab+
a
Not found
abbb
Not found
aab
Found
1 or more repetitions
{m}
Command: a {3}
aa
Not found
a
Not found
aaa
Found
Command a{2,4}
aa
Found
aaa
Found
a
Not found
Pattern preceding the curly brackets should repeat m amount of times
*
0 or more repetitions
Command: ab*
a
Found
aab
Found
abbb
Found
()
Captures string that fits the pattern
Command: (Mr?s)
Mrs
Mrs captured
Miss
Not found
Mr
Mr captured