in reply to Re: How to replace greedy alternation?
in thread How to replace greedy alternation?
For example, when used in the code below nothing s returned./^(?=.*a)(?=.*b)(?=.*c).*d/
echo bacd| perl -ne '/^(?=.*a)(?=.*b)(?=.*c).*d/; print "$1 $2 $3\n";'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to replace greedy alternation?
by jwkrahn (Abbot) on Jan 28, 2009 at 07:25 UTC |