The . character in a php regex accepts all characters, except a newline. What can I use to accept ALL characters, including newlines?
.
would
[.\n]+
not work?
How about (.|\n)+? I tested it and it seems to work.
(.|\n)+
I am quite sure this is the literal interpretation of exactly what you were asking for.