in reply to Re^2: Efficient regex matching with qr//; Can I do better?
in thread Efficient regex matching with qr//; Can I do better?
You could try to match once, reset pos to the previous starting position, remove the regex that caused the match and retry again. But I don't think that's very efficient.
If you don't want to match at the same position, you can use the /g modifier in a while loop to match multiple times.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Efficient regex matching with qr//; Can I do better?
by kruppy (Initiate) on Jul 14, 2008 at 14:20 UTC | |
by moritz (Cardinal) on Jul 14, 2008 at 14:28 UTC | |
by kruppy (Initiate) on Jul 14, 2008 at 18:07 UTC | |
by moritz (Cardinal) on Jul 14, 2008 at 20:35 UTC | |
by kruppy (Initiate) on Jul 15, 2008 at 05:13 UTC |