in reply to How to match a string containing whitespace characters

/\\[rntf]/ perhaps?

The problem with your attempt #2 is that you try to use commas in the character class, and that you confuse sequences (first a \\, then something else) with a character class (any of ...).

Replies are listed 'Best First'.
Re^2: How to match a string containing whitespace characters
by Lawliet (Curate) on Sep 15, 2008 at 22:29 UTC

    Or perhaps /\\[rtfn]/ for the humorous similarity :P

    I'm so adjective, I verb nouns!

    chomp; # nom nom nom