In Chapter 3, Cleaning Our Datasets, we discussed the use of regular expressions to assist the programmer in finding irregularities in datasets. Chapter 3, Cleaning Our Datasets, in my opinion, is the most important chapter in the book. This appendix sets out to compile a list of the most frequently used regular expression features. Before we begin, we must import the
> import Text.Regex.Posix
A regular expression is made up of atoms. An unmodified atom in a regular expression must match one, and exactly one, instance of a matching sequence in a string in order to satisfy the expression. When two or more unmodified atoms appear consecutively in ...