As the Anonymous One has said, modifiers are an entirely kosher part of regexes, and haukex has already linked to a discussion of non-slurping, line-by-line matching.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Regex get Text between two strings with colon
by AnomalousMonk
in thread Regex get Text between two strings with colon
by MurciaNew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |