g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
s modifier: single line. Allows a dot to match line terminators
A modifier: Anchored. Forces the pattern to match only at the start of the search
D modifier: Dollar. Forces $ to match only at the end of the string instead of also before a final line terminator. This option is ignored if the m-flag is set