Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder7.xlned.com!novso.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.075 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'python': 0.08; 'match.': 0.09; 'newline': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'confuses': 0.16; 'finney': 0.16; 'header:In-Reply-To:1': 0.21; 'subject:problem': 0.22; '(and': 0.25; 'match': 0.26; 'objects.': 0.30; 'pattern': 0.30; 'protocols': 0.30; 'supposed': 0.31; 'does': 0.33; 'to:addr:python-list': 0.33; "isn't": 0.33; 'file': 0.34; 'header:User-Agent:1': 0.35; 'message-id:@gmail.com': 0.36; 'received:google.com': 0.37; 'http': 0.37; 'sequence': 0.37; 'received:74.125': 0.38; 'but': 0.38; 'though': 0.38; 'subject:: ': 0.38; 'received:192': 0.38; 'doing': 0.39; 'trouble': 0.39; 'subject:with': 0.39; 'to:addr:python.org': 0.39; 'possibility': 0.40; 'received:192.168.1': 0.40; 'internet': 0.64; '08:00': 0.84; 'dismissed': 0.84; 'standard,': 0.84; 'url:exe': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=bAH7gBihfvfSH+ncwCRBWKD8BuTs3c002P5RPbkyzso=; b=o7OD+6cn6XHbkwRlWGcs5+qIccygluziW9ix+zA2oj4XVAe/xwg5ky3r5y0TWJ/kRQ ToHpjCPnaZe+pcMorS70qlXXa+SB5ofaw4yqQ6SFVL4/ymUUtL6w7da4WiDScH2v6Pod ZIjzujV5cQiICOXvlyl1TZu1KqQcAR5qmVIeQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=M301KSjItHCC5TIUfkp5cteSmWfP0GdHICJYi6+vJQ0urClTSTHFcrgOMr9IA/tPLp IdbWVuYdn6JjZkYM6rFXzNLrsenWxOpqZP4wZeSrUmGQ9hEc1Ce7p6UN2/7krGW5gEAO TYCjnWbRnLj4I/yUpjppj5a4QobGpKM5n2v3U= Date: Sun, 29 May 2011 08:29:13 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Weird problem matching with REs References: <8739jxacgt.fsf@benfinney.id.au> In-Reply-To: <8739jxacgt.fsf@benfinney.id.au> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 11 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306675766 news.xs4all.nl 49047 [::ffff:82.94.164.166]:47566 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6535 On 2011.05.29 08:00 AM, Ben Finney wrote: > You are aware that most text-emitting processes on Windows, and Internet > text protocols like the HTTP standard, use the two-character “CR LF” > sequence (U+000C U+000A) for terminating lines? Yes, but I was not having trouble with just '\n' before, and the pattern did match in Kodos, so I figured Python was doing its newline magic like it does with the write() method for file objects. http://x264.nl/x264/64bit/8bit_depth/revision[\r\n]{1,3}[0-9]{4}[\r\n]{1,3}/x264[\r\n]{1,3}.exe does indeed match. One thing that confuses me, though (and one reason I dismissed the possibility of it being a newline issue): isn't '.' supposed to not match '\r'?