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


Groups > comp.lang.python > #13299

Re: help regarding re.search

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'unexpected': 0.07; 'python': 0.08; '3.2.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'syntax': 0.16; 'wrote:': 0.16; 'received:209.85.210.174': 0.18; 'received:mail- iy0-f174.google.com': 0.18; 'subject:help': 0.22; 'header:In- Reply-To:1': 0.22; 'sep': 0.23; 'worked': 0.23; 'pm,': 0.24; 'thu,': 0.28; 'message-id:@mail.gmail.com': 0.29; 'error': 0.32; 'version': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'to:addr:python.org': 0.39
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=VbCDrgFuaL0Q73Fpw+5MkzQZtnXQTnu4fJKU4gXBbvo=; b=x+IXXmOVDnnuEJCdWQu+NQQiNDneNQ5WByiSrt5ieuYY03Rv3uHrsH3M21aTZ8c0MR kEoOkpZxHCKZk+oQfw8fRtxUqt2QXKcowlcN6ROrSzbAgMwwRm5i6olpEFWaoffMSVWM N+a1uCQBSWZkz50sa+ZE9rY8YW/N+G/EYMsmc=
MIME-Version 1.0
In-Reply-To <CAP8kuik0Aq0gc5NvYPU__k96QiSc0uj+nbAezsx685TGzb2o3w@mail.gmail.com>
References <CAP8kui=Nqo6bDQh-SA-t+KMFs=NrgYYFmnsw6wXATJ8-aTxmZQ@mail.gmail.com> <CAMZYqRR5UqHhdKiyLsZqE8DouXDWvFOsUw8OCYfjZ0E9f8iEBg@mail.gmail.com> <CAP8kuinJnPv=6U1J6LYZgGk_yUN6PskvHStCo1kEMHUBG1NkuQ@mail.gmail.com> <CAMZYqRSiHY3Cz=r=oAioNCUUEz=L1fW4ngLc4xCyPwwpU9mM2A@mail.gmail.com> <CAP8kuik0Aq0gc5NvYPU__k96QiSc0uj+nbAezsx685TGzb2o3w@mail.gmail.com>
Date Thu, 15 Sep 2011 14:49:31 +1000
Subject Re: help regarding re.search
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1144.1316062174.27778.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1316062174 news.xs4all.nl 2512 [2001:888:2000:d::a6]:57830
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:13299

Show key headers only | View raw


On Thu, Sep 15, 2011 at 2:41 PM, Sagar Neve <nevesagar@gmail.com> wrote:
> ./sample.py: line 9: syntax error near unexpected token `:'
> ./sample.py: line 9: `if (Opt_Param2 in url):    '
>

It worked for me in Python 3.2. What version of Python are you using?

ChrisA

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


Thread

Re: help regarding re.search Chris Angelico <rosuav@gmail.com> - 2011-09-15 14:49 +1000

csiph-web