[Tutor] Advanced String Search using operators AND, OR etc..

Emile van Sebille emile at fenx.com
Mon May 4 20:23:23 CEST 2009


On 5/4/2009 11:03 AM Alan Gauld said...
> "Alex Feddor" <alex.feddor at gmail.com> wrote
> 
>> I am looking for method enables advanced text string search. Method
>> string.find() or re module seems no  supporting what I am looking for. 
>> The
>> idea is as follows:
> 
> The re module almost certainly can do what you want but regex
> are notoriously hard to master and often obscure.

Seconded.  I almost always find it faster and easier to simply write the 
python routine I need rather than suffer the pain that results from 
getting the regex to actually perform what's needed ...

Emile



More information about the Tutor mailing list