Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88024
| Date | 2015-03-25 20:29 -0500 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Basic Python V3 Search Tool using RE module |
| References | <b8b86122-0653-42eb-b9d9-2ba0f45f30f9@googlegroups.com> <55135EE3.3080809@davea.name> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.179.1427345768.10327.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Basic Python V3 Search Tool using RE module Gregg Dotoli <gdotoli@gmail.com> - 2015-03-25 12:43 -0700
Re: Basic Python V3 Search Tool using RE module Dave Angel <davea@davea.name> - 2015-03-25 21:20 -0400
Re: Basic Python V3 Search Tool using RE module Tim Chase <python.list@tim.thechases.com> - 2015-03-25 20:29 -0500
Re: Basic Python V3 Search Tool using RE module CHIN Dihedral <dihedral88888@gmail.com> - 2015-03-26 06:01 -0700
Re: Basic Python V3 Search Tool using RE module Gregg Dotoli <gdotoli@gmail.com> - 2015-03-26 10:11 -0700
Re: Basic Python V3 Search Tool using RE module Dave Angel <davea@davea.name> - 2015-03-26 13:23 -0400
Re: Basic Python V3 Search Tool using RE module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-27 10:01 +1100
csiph-web