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


Groups > comp.lang.python > #64365

Re: regex multiple patterns in order

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jeanpierreda@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'expressions': 0.07; 'pypi': 0.07; 'lawrence': 0.09; 'so?': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'jan': 0.12; 'prevent': 0.16; 'wrote:': 0.18; 'module': 0.19; 'comfortable': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'themselves': 0.32; 'regular': 0.32; 'text': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'module.': 0.36; 'doing': 0.36; 'example,': 0.37; 'skip:u 10': 0.60; 'become': 0.64; '20,': 0.68; 'home': 0.69; 'to,': 0.72; 'influences': 0.84; 'to:addr:yahoo.co.uk': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=TGN5RGQRS5C3bW3Wo/K6nWxbazuIA1wTx9ppTT9f758=; b=CCP7ImH5SNnn3VjwSmRso1IOhuPciYQic9V4O63NoWXcqoa1YPd41UkoCNLzVeS/De s4/bz4zJD+HoRmsUfMWHKXdXA7dDW7SHXpqbgF+Ura4/gcQWb5+kQH6foYDgW0kPyP5H 5nRZYFUCoODibsTzWPNXatmFJCbLVFjDDbmLQKBGZH8Re3/y5VmVxKRhFWtSmWPw2syo GqNeNVGhz5MBVxm03/U8SEKMaVwbL+PNeVEt0/cz4um/+1+0tRgZKimdwdKp7WZH8ysU WiCIatbxLvRiDsi9LXoLkpXM6r85V2UsRWvjgqRxfiyv7LHlz8OGvAh4WuMQMnbyR6sw /TVw==
X-Received by 10.229.13.133 with SMTP id c5mr29579901qca.22.1390236073613; Mon, 20 Jan 2014 08:41:13 -0800 (PST)
MIME-Version 1.0
In-Reply-To <lbji4u$hk8$1@ger.gmane.org>
References <CAPV1RAAiD3qWqrAJYc4yb80CaHG4A9N4jz4aY_CsyJr_nAUx9Q@mail.gmail.com> <mailman.5748.1390216721.18130.python-list@python.org> <roy-C6EC2C.09525920012014@news.panix.com> <lbjher$8hf$1@ger.gmane.org> <lbji4u$hk8$1@ger.gmane.org>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date Mon, 20 Jan 2014 08:40:32 -0800
Subject Re: regex multiple patterns in order
To Mark Lawrence <breamoreboy@yahoo.co.uk>
Content-Type text/plain; charset=UTF-8
Cc "comp.lang.python" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5752.1390236075.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390236075 news.xs4all.nl 2851 [2001:888:2000:d::a6]:56169
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64365

Show key headers only | View raw


On Mon, Jan 20, 2014 at 8:16 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 20/01/2014 16:04, Neil Cerutti wrote:
>> I use regular expressions regularly, for example, when editing
>> text with gvim. But when I want to use them in Python I have to
>> contend with the re module. I've never become comfortable with
>> it.
>>
>
> You don't have to, there's always the "new" regex module that's been on pypi
> for years.  Or are you saying that you'd like to use regex but other
> influences that are outside of your sphere of control prevent you from doing
> so?

I don't see any way in which someone uncomfortable with the re module
would magically find themselves perfectly at home with the regex
module. The regex module is the re module with some extra features
(and complexity), is it not?

-- Devin

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


Thread

Re: regex multiple patterns in order Ben Finney <ben+python@benfinney.id.au> - 2014-01-20 22:18 +1100
  Re: regex multiple patterns in order Roy Smith <roy@panix.com> - 2014-01-20 09:52 -0500
    Re: regex multiple patterns in order Neil Cerutti <neilc@norwich.edu> - 2014-01-20 16:04 +0000
    Re: regex multiple patterns in order Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-20 16:16 +0000
    Re: regex multiple patterns in order Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-01-20 08:40 -0800
      Re: regex multiple patterns in order Rustom Mody <rustompmody@gmail.com> - 2014-01-20 09:06 -0800
        Re: regex multiple patterns in order Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-20 17:30 +0000
    Re: regex multiple patterns in order Neil Cerutti <neilc@norwich.edu> - 2014-01-20 17:09 +0000
    Re: regex multiple patterns in order Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-20 17:33 +0000

csiph-web