Regular expression negative look-ahead

Jason Friedman jsf80238 at gmail.com
Wed Jul 3 22:50:51 EDT 2013


> Huh, did not realize that endswith takes a list.  I'll remember that in
> the future.
>
> This need is actually for http://schemaspy.sourceforge.net/, which allows
> one to include only tables/views that match a pattern.
>
> Either there is a bug in Schemaspy's code or Java's implementation of
> regular expressions is different than Python's or there is a flaw in my
> logic, because the pattern I verify using Python produces different results
> when used with Schemaspy.  I suppose I'll open a bug there unless I can
> find the aforementioned flaw.
>
>
> if not table_name.endswith(('_CTL', '_DEL', '_RUN')):
>>     # Do whatever
>>
>>
> Shoot, sorry, did not mean to top-post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130703/3c5a6585/attachment.html>


More information about the Python-list mailing list