Using wild character

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Sep 6 03:47:04 EDT 2007


On Wed, 05 Sep 2007 22:54:55 -0700, TheFlyingDutchman wrote:

> To do a "*string" wildcard filter use the endswith() function instead
> of startswith() and to do a *string* type wildcard filter use
> the find() function > -1.

Maybe better the ``in`` operator for the '*string*' type.  `str.find()`
will go away in the future.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list