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: 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: References: Date: Thu, 15 Sep 2011 14:49:31 +1000 Subject: Re: help regarding re.search From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Sep 15, 2011 at 2:41 PM, Sagar Neve wrote: > ./sample.py: line 9: syntax error near unexpected token `:' > ./sample.py: line 9: `if (Opt_Param2 in url):=A0=A0=A0 ' > It worked for me in Python 3.2. What version of Python are you using? ChrisA