Compile

Why would you want to compile a pattern with compile() ? It’s going to be used multiple times I want […]

Read More

Groups

We’ve seen it already where our match objects only have one group in them. It’s often really handy to have […]

Read More

Sets & Flags

[abc] – ‘a’, ‘b’, and ‘c’ set of characters It’ll match any of those characters, in any order, but only […]

Read More

Escapes

\w – Word character. That’s any letters, numbers, and the underscore character. \W – Anything but word characters. \s – […]

Read More

Regex Basics

Open a file “basics.txt” and load it into a file object variable. Read the contents of file_object into a new […]

Read More