Basic Python V3 Search Tool using RE module

Tim Chase python.list at tim.thechases.com
Wed Mar 25 21:29:06 EDT 2015


On 2015-03-25 21:20, Dave Angel wrote:
>> pattern="DECRYPT_I"
>> regexp=re.compile(pattern)
>
> That could explain why it's so fast.

While I might have missed it in the thread, it also seems that
regexpen are overkill for this.  Why not just test for

  if pattern in name:
    ...

-tkc





More information about the Python-list mailing list