Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49797

Re: Regular expression negative look-ahead

References <CANy1k1iGTYjAVzTnNegXuW9FaoqZsXe1z8TMhzAN1VYeyDUnSQ@mail.gmail.com> <CANy1k1jGBgLj45ngn6qNd8Okx_tGnXdWQo0+4yTsNr=XdxUSXg@mail.gmail.com> <CALwzidnpEdA3wdXYbOjQrK_VOUDvEwCVbfPyHKBMich9w7bs8g@mail.gmail.com> <CANy1k1iigQ5HPL+KWeArktu0Fg36k7fe6WaCZDvFhq0OkmJdUQ@mail.gmail.com>
Date 2013-07-03 20:50 -0600
Subject Re: Regular expression negative look-ahead
From Jason Friedman <jsf80238@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4198.1372906253.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

> 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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Regular expression negative look-ahead Jason Friedman <jsf80238@gmail.com> - 2013-07-03 20:50 -0600

csiph-web