i
Ignore case — match both lower and upper case letters
g
Global match — find all matches rather than only the first one
m
Multi-line match — tells the engine to treat the subject string as multiple lines. ^ and $ match next to \n instead of the start or end of the entire string