in reply to Recursive substitution
if it can be done entirely inside the regex itself;
If what can be done? Change the position at which it will continue matching? Why don't you try it?
>perl -le"$_='abc'; /(.)(?{ pos = 0 })(.)/; print for $1,$2" a b
Guess not.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recursive substitution
by JadeNB (Chaplain) on Nov 10, 2009 at 12:15 UTC | |
by ikegami (Patriarch) on Nov 10, 2009 at 15:41 UTC |