"the quick brown fox\njumps over the lazy dog" =~ m[([\W\w]+)] and print $1;; the quick brown fox jumps over the lazy dog "the quick brown fox\njumps over the lazy dog" =~ m[([\S\s]+)] and print $1;; the quick brown fox jumps over the lazy dog "the quick brown fox\njumps over the lazy dog" =~ m[([\D\d]+)] and print $1;; the quick brown fox jumps over the lazy dog