Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(using': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.12; '(letter': 0.16; 'numeral': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:class': 0.16; 'wrote:': 0.18; '(not': 0.18; 'meant': 0.20; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'mon,': 0.24; 'least': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'skip:- 40': 0.29; 'tim': 0.29; 'characters': 0.30; 'chase': 0.31; 'received:132': 0.31; 'something': 0.35; 'definition': 0.35; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'more': 0.64; '"one': 0.84; 'subject:Letter': 0.93; 'hundred': 0.95 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Wolfgang Maier Subject: Re: Letter class in re Date: Mon, 09 Mar 2015 15:09:14 +0100 References: <20150309061736.07e0d944@bigbox.christie.dr> <1425908003.40588.YahooMailBasic@web163805.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: px1.ruf.uni-freiburg.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425910511 news.xs4all.nl 2933 [2001:888:2000:d::a6]:42426 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87204 On 03/09/2015 03:04 PM, Wolfgang Maier wrote: > On 03/09/2015 02:33 PM, Albert-Jan Roskam wrote: >> -------------------------------------------- >> On Mon, 3/9/15, Tim Chase wrote: >> >> "[^\d\W_]+" means something like "one or more (+) of 'not (a digit, a >> non-word, an underscore)'. >> > > interesting (using Python3.4 and > U+2188 ROMAN NUMERAL ONE HUNDRED THOUSAND ↈ): > > >>> re.search('[^\d\W_]+', '\u2188', re.I | re.U) > <_sre.SRE_Match object; span=(0, 1), match='ↈ'> > > ↈ and at least some other Nl (letter numbers) category characters seem > to be part of \w (not part of \W). > > Would that be considered a bug ? > Sorry for the potential confusion: I meant in the pattern search above (not in the definition of \w or \W).