[Tutor] pattern searching

Lie Ryan lie.1296 at gmail.com
Sun Nov 8 19:30:13 CET 2009


Ajith Gopinath wrote:
> Thanks folks.
> 
> || a j i t ||
> 
> 
> On Sat, Nov 7, 2009 at 7:49 AM, bob gailer <bgailer at gmail..com 
> <mailto:bgailer at gmail.com>> wrote:
> 
>     Shashwat Anand wrote:
> 
>         @Bob: the solution seems promising, and it's fast. Thanks for
>         the improvement. However I would like to do a minor change to
>         the code to prevent it going to infinite loop.
> 

Be mindful that if the original string contains 'lul' you might miscount.



More information about the Tutor mailing list