Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49635
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Neil Cerutti <neilc@norwich.edu> |
| Newsgroups | comp.lang.python |
| Subject | Re: Regular expression negative look-ahead |
| Date | 2 Jul 2013 12:15:10 GMT |
| Organization | Norwich University |
| Lines | 24 |
| Message-ID | <b3fuieF5rcbU1@mid.individual.net> (permalink) |
| References | <mailman.4102.1372749590.3114.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net R6s/2lyNs5etOXpTyy4F6QHnOzGuc277tI/Aottv9WyEfYRXpg |
| Cancel-Lock | sha1:8dU4UjirITvyEymQNccukjwz5hs= |
| User-Agent | slrn/0.9.9p1/mm/ao (Win32) |
| Xref | csiph.com comp.lang.python:49635 |
Show key headers only | View raw
On 2013-07-01, Jason Friedman <jsf80238@gmail.com> wrote: > > I have table names in this form: > MY_TABLE > MY_TABLE_CTL > MY_TABLE_DEL > MY_TABLE_RUN > YOUR_TABLE > YOUR_TABLE_CTL > YOUR_TABLE_DEL > YOUR_TABLE_RUN > > I am trying to create a regular expression that will return true for only > these tables: > MY_TABLE > YOUR_TABLE Use the "is not a word" character class on either end. r"\WMY_TABLE\W" r"\WYOUR_TABLE\W" -- Neil Cerutti
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Regular expression negative look-ahead Jason Friedman <jsf80238@gmail.com> - 2013-07-01 17:07 -0600 Re: Regular expression negative look-ahead Neil Cerutti <neilc@norwich.edu> - 2013-07-02 12:15 +0000
csiph-web