[^] is the best chr class you'll ever use :) it is better than a dot as it matches new lines as well
Replying to @garethheyes
@garethheyes (?s) makes dot match newlines

Jan 13, 2011 · 5:36 PM UTC