in reply to Matching Character Patterns With Backreferences
my @matches = $word =~ /^(\w)([^$1])($2)([^$1$2$3])([^$1$2$3$4])([^$1$ +2$3$4$5])/; print $word if @matches == 6; # or length $word, whatever.
BTW, what's that \s doing in your regexp?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching Character Patterns With Backreferences
by Anonymous Monk on Dec 05, 2004 at 21:12 UTC | |
by BUU (Prior) on Dec 06, 2004 at 00:42 UTC | |
by gaal (Parson) on Dec 06, 2004 at 17:37 UTC | |
by BUU (Prior) on Dec 07, 2004 at 04:13 UTC | |
by gaal (Parson) on Dec 07, 2004 at 15:10 UTC |