@james What cᴏʟᴅsᴘᴇᴇᴅ said. However, Python provides a couple of ways to specify regex flags. You can pass them in the
flags
arg when you compile the regex, as mentioned
here. You can also specify them at the start of the regex pattern itself, as mentioned
here in the
(?aiLmsux)
section.