in reply to Regex: Char-class equivalent for [^]
How about one of these?
"the quick brown fox\njumps over the lazy dog" =~ m[([\W\w]+)] and pri +nt $1;; the quick brown fox jumps over the lazy dog "the quick brown fox\njumps over the lazy dog" =~ m[([\S\s]+)] and pri +nt $1;; the quick brown fox jumps over the lazy dog "the quick brown fox\njumps over the lazy dog" =~ m[([\D\d]+)] and pri +nt $1;; the quick brown fox jumps over the lazy dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: Char-class equivalent for [^]
by LanX (Saint) on Jan 14, 2013 at 14:08 UTC |