in reply to Re: Re: Re: Re: all matches
in thread all matches

Oh I see. That's more difficult since perl's regex engine is designed to stop anytime it finds a match. You're after every possible match which is something I hear a POSIX regex engine will do by default. I'd be wary of trying to trick perl's engine with your trailing (?!) because the thing is designed to try to stop early and IIRC will try to avoid branches when possible, especially exponential permutations which is what you're after.

Perhaps you should write your program in a language that has a POSIX engine instead.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: all matches
by oz (Novice) on Mar 27, 2004 at 09:52 UTC
    I had spent so much time on this. Thank you very much for your advice. hope I will be able to figure out POSIX engine. thanks a lot:)