i often forget about the regular expression modifier "m" and "s" and their differences. what is a good way to remember them?
as i understand them, they are:
'm' is for multiline, so that ^ and $ will match beginning of string and end of string multiple times. (as divided by "\n")
's' is so that the dot will match even the newline character
often, i just use
/some_pattern/ism
but it probably is better to use them accordingly (usually "s" in my cases).
what do you think can be a good way to remember them, instead of forgetting which is which every time?