in reply to Re: RegEx: Why is [.] not a valid character class?
in thread RegEx: Why is [.] not a valid character class?

(?:.|\n) is unnecessary slow due to the alternation. (?s:.) doesn't suffer from that.

ihb

See perltoc if you don't know which perldoc to read!
Read argumentation in its context!