Often I need to use regular expressions to match strings across multiple lines. In python and other languages, it's possible to ask that dots match newlines (as opposed to the default behavior). Is it possible to do this using the default regexp utilities without hacking the source?
I know I can use a negated character class, which will consume newlines if the newline is not in the class, but this is too limited since what I really want is to just match any character at all.
C-M-.anytime in the minibuffer to toggle whether when you type
.in your minibuffer input it matches any char (including newlines) or any char except newlines. This is handy for apropos completion, which uses regexp matching.