Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie Newsgroups: comp.lang.python Subject: Re: Regular expressions Date: Wed, 04 Nov 2015 08:13:51 -0700 Lines: 21 Message-ID: References: <662g3blobme52hfoududj27err185v2npm@4ax.com> <56397a18$0$11094$c3e8da3@news.astraweb.com> <56397FC6.9040700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de Ki63Yi1modTrAGVLfJo9QwlfRcrKJUnlZ9aLvTTe2O1Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; '"""': 0.05; 'expressions': 0.07; 'grep': 0.09; 'python': 0.10; '\\).': 0.16; 'commented': 0.16; 'earlier.': 0.16; 'enough.': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Regular': 0.16; 'subject:expressions': 0.16; 'wrote:': 0.16; 'versions': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'not.': 0.27; 'page.': 0.28; 'regular': 0.29; 'subset': 0.29; 'checked': 0.31; "he's": 0.33; 'though.': 0.33; 'message- id:@gmail.com': 0.34; 'list': 0.34; 'but': 0.36; 'instead': 0.36; 'there': 0.36; 'basic': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'wrong': 0.38; 'goes': 0.39; "didn't": 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'called': 0.40; 'hope': 0.61; 'charset:windows-1252': 0.62; 'lose': 0.63; 'brain': 0.66; 'special': 0.73; '01:57': 0.84; 'headed': 0.84; 'otten': 0.84; 'technically': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98231 On 11/04/2015 01:57 AM, Peter Otten wrote: > and then headed for the man page. Apparently there is a subset > called "basic regular expressions": > > """> Basic vs Extended Regular Expressions > In basic regular expressions the meta-characters ?, +, {, |, (, > and ) lose their special meaning; instead use the backslashed > versions \?, \+, \{, \|, \(, and \). > """ Good catch. I think this must have been what my brain was thinking when I commented about grep and regular expressions earlier. I checked the man page but didn't read down far enough. I was still technically wrong though. It's neat to learn so much on these tangents that the python list goes on frequently. Hope the OP is still lurking, reading all these comments, though I suspect he's not.