Python
Regular Expression Fundamentals
A pattern describes a shape of text. Character classes say what, quantifiers say how many, anchors say where, and groups say which part to keep.
Pattern syntax, character classes, quantifiers, groups and the re module in practice.
3 notes
A pattern describes a shape of text. Character classes say what, quantifiers say how many, anchors say where, and groups say which part to keep.
Seven functions cover every regex job: search, match, fullmatch, findall, finditer, sub and split. Knowing which one to reach for is most of the skill...
Cleaning, extracting, validating and transforming real text - the jobs regular expressions were made for, worked through end to end.