Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'received:209.85.212.46': 0.03; 'received:mail-vw0-f46.google.com': 0.03; 'mentioned,': 0.05; 'url:pypi': 0.09; 'url:code': 0.11; 'mrab': 0.16; 'wow,': 0.16; 'header:In-Reply-To:1': 0.22; 'url:wiki': 0.24; 'received:209.85.212': 0.25; 'message-id:@mail.gmail.com': 0.28; 'problem': 0.29; 'to:addr:python-list': 0.32; 'thank': 0.32; '...': 0.32; 'quite': 0.36; 'received:209.85': 0.37; 'url:python': 0.37; 'subject:with': 0.37; 'received:google.com': 0.38; 'but': 0.38; 'url:google': 0.38; 'url:org': 0.38; 'ok,': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'subject: (': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'might': 0.40; 'exact': 0.60; 'respect': 0.60; 'here:': 0.61; 'url:p': 0.63; 'double': 0.69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=M8inHVyyO4/ypkvRVw/bbtcSYyOYixmk82gPVGmUsVU=; b=UNjn9b86DG7JIfqxX0akAZ4hT0XD6zCDm/4y7KvtJu3393nDu0zWPNfxsd0FTxzjDb +mTS9zFDpK4qY7f/QOW71NYX+TIARAN2yr+mkRxxBXVvnjDVM0S+VA5TfuEqxuVSP+ax EeIxFnN24KwtZaGKraIax4z5EwWUpuPlrvfic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=MYTwcheKdbch4F0WK2k0L91ERjso3hfIrycqaDQacRaPS/lYsEFLjChFn27n2h0PVc +jJjs0UHMvvAItV54jzHLD5Anc3Z/S3p4SRQEwcBkNkMBOfgjzX9JT6HC2spiI3845dB +mnYkbbzUWN1smapS+NLD4E+gx7Kdiffcb6sI= MIME-Version: 1.0 In-Reply-To: <4DCD6BBF.70308@mrabarnett.plus.com> References: <878vua4mjp.fsf@pcwi7557.uni-muenster.de> <4DCD6BBF.70308@mrabarnett.plus.com> Date: Sat, 14 May 2011 01:30:03 +0200 Subject: Re: Regular Expression for words (with umlauts, without numbers) From: Vlastimil Brom 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305329405 news.xs4all.nl 81473 [::ffff:82.94.164.166]:46736 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5326 2011/5/13 MRAB : > The latest release is here: > > =A0 =A0http://pypi.python.org/pypi/regex > -- Wow, set operators were added recently ... https://code.google.com/p/mrab-regex-hg/wiki/GeneralDetails ok, it might be not necassary to sove this exact problem with respect to the solutions already mentioned, but I quite like this extra possibilities, anyway, the double negation [^\W] is not needed here: (?u)[\w--\d] Thank you very much for this excellent library! vbr