in reply to Re: Re: Re: nested pattern matching
in thread nested pattern matching

it doesn't seem to work for
FGTXYZABCABC
it gives 3, 0
when it should give
3,0
3,3
thanks
  • Comment on Re: Re: Re: Re: nested pattern matching

Replies are listed 'Best First'.
Re(5): nested pattern matching
by CombatSquirrel (Hermit) on Aug 18, 2003 at 20:11 UTC
    What do you exactly want? The above code produces the starting position and length of a sequence of non-overlapping matches according to the above pattern. It looks like you rather want a minimal and maximal match length for each possible starting position of a match. Is that correct? If no, please clarify the rule according to which the program should behave and I'll try my best to help you.