in reply to matching multiline regular expressions
You mention that you are unable to make such a match arbitrarily. If you truly need to do this on an arbitrary basis, you may need to occassionaly use the /s switch, which allows the "." metacharacter to match a newline.