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


Groups > comp.lang.python > #48301

Re: Pattern Search Regular Expression

X-Received by 10.224.86.200 with SMTP id t8mr3470071qal.0.1371306665607; Sat, 15 Jun 2013 07:31:05 -0700 (PDT)
X-Received by 10.50.114.97 with SMTP id jf1mr93215igb.15.1371306665412; Sat, 15 Jun 2013 07:31:05 -0700 (PDT)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!j2no286171qak.0!news-out.google.com!y6ni2993qax.0!nntp.google.com!j2no286166qak.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Sat, 15 Jun 2013 07:31:05 -0700 (PDT)
In-Reply-To <mailman.3377.1371306538.3114.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=122.161.0.1; posting-account=6SonuQoAAACzSakS5dCECcJQe6ylLrzY
NNTP-Posting-Host 122.161.0.1
References <afd6b280-3b64-467b-a2e1-2b36377cd13a@googlegroups.com> <51bc3c4d$0$29997$c3e8da3$5496439d@news.astraweb.com> <kphfdr$su9$8@dont-email.me> <mailman.3371.1371293740.3114.python-list@python.org> <kphqu1$su9$10@dont-email.me> <kphr62$su9$11@dont-email.me> <mailman.3377.1371306538.3114.python-list@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <5200649f-2b2f-4535-8016-a31369e6e348@googlegroups.com> (permalink)
Subject Re: Pattern Search Regular Expression
From subhabangalore@gmail.com
Injection-Date Sat, 15 Jun 2013 14:31:05 +0000
Content-Type text/plain; charset=ISO-8859-1
Lines 52
Xref csiph.com comp.lang.python:48301

Show key headers only | View raw


On Saturday, June 15, 2013 7:58:44 PM UTC+5:30, Mark Lawrence wrote:
> On 15/06/2013 14:45, Denis McMahon wrote:
> 
> > On Sat, 15 Jun 2013 13:41:21 +0000, Denis McMahon wrote:
> 
> >
> 
> >> first_and_last = [sentence.split()[i] for i in (0, -1)] middle =
> 
> >> sentence.split()[1:-2]
> 
> >
> 
> > Bugger! That last is actually:
> 
> >
> 
> > sentence.split()[1:-1]
> 
> >
> 
> > It just looks like a two.
> 
> >
> 
> 
> 
> I've a very strong sense of deja vu having round the same loop what, two 
> 
> hours ago?  Wondering out aloud the number of times a programmer has 
> 
> thought "That's easy, I don't need to test it".  How are the mighty fallen.
> 
> 
> 
> -- 
> 
> "Steve is going for the pink ball - and for those of you who are 
> 
> watching in black and white, the pink is next to the green." Snooker 
> 
> commentator 'Whispering' Ted Lowe.
> 
> 
> 
> Mark Lawrence

Dear Group,

I know this solution but I want to have Regular Expression option. Just learning.

Regards,
Subhabrata. 

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


Thread

Pattern Search Regular Expression subhabangalore@gmail.com - 2013-06-15 02:42 -0700
  Re: Pattern Search Regular Expression Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-15 10:05 +0000
    Re: Pattern Search Regular Expression Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-15 10:24 +0000
      Re: Pattern Search Regular Expression Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 11:55 +0100
        Re: Pattern Search Regular Expression rusi <rustompmody@gmail.com> - 2013-06-15 04:28 -0700
        Re: Pattern Search Regular Expression Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-15 13:41 +0000
          Re: Pattern Search Regular Expression Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-15 13:45 +0000
            Re: Pattern Search Regular Expression Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 15:28 +0100
              Re: Pattern Search Regular Expression subhabangalore@gmail.com - 2013-06-15 07:31 -0700
                Re: Pattern Search Regular Expression Andreas Perstinger <andipersti@gmail.com> - 2013-06-15 17:01 +0200
                Re: Pattern Search Regular Expression Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 16:04 +0100
                Re: Pattern Search Regular Expression subhabangalore@gmail.com - 2013-06-15 09:28 -0700
                Re: Pattern Search Regular Expression Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 17:39 +0100
                Re: Pattern Search Regular Expression Terry Reedy <tjreedy@udel.edu> - 2013-06-15 16:24 -0400
  Re: Pattern Search Regular Expression Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 11:18 +0100
  Re: Pattern Search Regular Expression rurpy@yahoo.com - 2013-06-15 09:59 -0700
  Re: Pattern Search Regular Expression subhabangalore@gmail.com - 2013-06-15 10:54 -0700
    Re: Pattern Search Regular Expression rurpy@yahoo.com - 2013-06-15 11:47 -0700
      Re: Pattern Search Regular Expression subhabangalore@gmail.com - 2013-06-15 12:38 -0700
      Re: Pattern Search Regular Expression rurpy@yahoo.com - 2013-06-15 13:41 -0700
  Re: Pattern Search Regular Expression Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-15 22:03 +0100
  Re: Pattern Search Regular Expression Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 22:26 +0100

csiph-web