Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 10.1.2 RegEx (Commands: (More Commands ([]-> specification of a…
Chapter 10.1.2 RegEx
Commands:
Straight #'s or letters
555->will only search for the exact match of 555
Escape character & commands
\
\d->any digit will do
\D->all but a digit
\w-> any alphanumeric character
\W-> except alphanumeric
\s-> whitespace
\S->anything but whitespace
?-> character preceding it is not necessary for a match
More Commands
[]-> specification of a list of characters
[a-z]->can do a range
Add a ^ to do anything but, in brackets [^]
^ outside brackets = start of string(must)
|->allows two different patters like 303|720
$ outside brackets = must be at end of string(put $ at the end)
"+ " = the pattern must happen at least once
"*" = anything after it can me matched 0 - infinite times
{} specify exactly how many times a pattern can occur
Regex commands are used work with text
Pattern based