Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 10.1.2 - Regular Expressions
William Dickinson
widi7743@colorado…
Chapter 10.1.2 - Regular Expressions
William Dickinson
widi7743@colorado.edu
-
-
-
\d - Any digit
Capitalization usually "reverses" the effect, \D finds anything but a digit for example
-
-
-
-
-
-
* - Specifies that the RegEx pattern preceding it can be matched zero to an infinite number of times
-
-
Regular Expressions
Used for finding, replacing, or extracting content from text
-
-
Repetitions - Occurrences in which it makes sense to specify that a pattern repeats a certain number of times in the string being examined
Captures - The explicit notation (capturing) of any substring matching a RegEx pattern that can then be used to create a new column for use in machine learning
Primary goal of RegEx in data science is to create TRUE and FALSE columns for matching a pattern or fetch the actual pattern found
-
-
-
-
-
-
-
[] - Any alphanumeric character within the brackets
[^] - Any alphanumeric character not listed in the brackets
| - Pattern on either side, works like "and"
^ - Any pattern must being at the start of the string
$ - Any pattern must be adjacent to the end of the string
-
-
-
-