Reluctant regular expression for matching all characters, including newline.

Recently I was in need of a regular expression while searching though some code and I needed the ability to sift through all characters, including the newline character. While .*? will will match any character (reluctantly), it will not match new lines. By simply adding n? to the expression, you can include the newline character in your match like so: