in reply to Regexp matching words, not doing what I expect
$_ = "hello to all the perl monks"; /\b(([A-Za-z'\-]+) (?-1))\b(?{ say $1 })(*FAIL)/; __END__ hello to to all all the the perl perl monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexp matching words, not doing what I expect
by AnomalousMonk (Archbishop) on May 13, 2009 at 19:59 UTC | |
by JavaFan (Canon) on May 13, 2009 at 20:42 UTC |