prefix matching

Fredrik Lundh fredrik at pythonware.com
Wed May 26 16:22:51 EDT 2004


Christian Gudrian wrote:

> I started by composing a regular expression pattern which consists of all
> the strings in the list separated by "|" in a for loop. Then I used that
> pattern to do a regexp match.
>
> Seems rather complicated to me. Any alternatives?

does it work?  is it fast enough?

(if the answer is yes and yes, what's wrong with you ;-)

</F>







More information about the Python-list mailing list