Efficient String Lookup?

pitkali pitkali at NOSPAMinteria.pl
Sun Oct 17 03:15:24 EDT 2004


Chris S. wrote:

> 'abaxile', 'abaze', and 'abbacomes' to the pattern 'ab##'. I'm not an
> expert with rex, but your expression looks correct. What could be
> causing this?

To avoid this, one would have to add to the patterns \b AFAIR, so that it
matches whole words only.

Regards,

-- 
* Piotr (pitkali) Kalinowski * mailto: pitkali (at) o2 (dot) pl  *
*   Registered Linux User No. 282090 * Powered by Gentoo Linux   *
* Fingerprint: D5BB 27C7 9993 50BB A1D2 33F5 961E FE1E D049 4FCD *



More information about the Python-list mailing list