Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83748

Re: Python 3 regex?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.python
Subject Re: Python 3 regex?
Date 2015-01-14 14:02 +0100
Organization PointedEars Software (PES)
Message-ID <1879486.f98NMJPo2z@PointedEars.de> (permalink)
References (1 earlier) <mailman.17635.1421092112.18130.python-list@python.org> <4043d09b-05b2-4dc2-8a6b-bae2d53cd01f@googlegroups.com> <mailman.17649.1421114112.18130.python-list@python.org> <7c648fa2-4a59-4d1a-923f-d29f4f2dc8f7@googlegroups.com> <0fdf17d0-2dd7-4512-8f2a-104d78a27d72@googlegroups.com>

Show all headers | View raw


wxjmfauth@gmail.com wrote:

> Le mardi 13 janvier 2015 03:53:43 UTC+1, Rick Johnson a écrit :
>> [...]
>> you should find Python's "text processing Nirvana"
>> [...]
> 
> I recommend, you write a "small" application

I recommend you get a real name and do not post using the troll and spam-
infested Google Groups, but a newsreader instead.

> sorting strings composed of latin characters, a sort based on
> diacritical characters

I do not think you need regular expressions for that: you can use Unicode 
collations.

> (and eventually, taking into account linguistic specific aspects).

BTDT.  For a translator application, I used Python to sort a dictionary of 
the Latin phonetic transcription of Golic Vulcan whose alphabet is “S T P K 
R L A Sh O U D V Kh E H G Ch I N Zh M Y F Z Th W B” [1].  re helped a lot 
with that because inversely sorting the list by character length and turning 
it into an alternation allowed me to easily find the characters in words, 
and assign numbers to the letters so that I could sort the words according 
to this alphabet.  If anyone is interested, I can post the relevant code.

> And, why not? compare Py3.2 and Py3.3+ !

What are you getting at?

[1] <http://home.comcast.net/~markg61/vlif.htm>

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Python 3 regex? Ian <hobson42@gmail.com> - 2015-01-12 19:48 +0000
  Re: Python 3 regex? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-01-12 15:47 -0800
    Re: Python 3 regex? Chris Angelico <rosuav@gmail.com> - 2015-01-13 10:52 +1100
    Re: Python 3 regex? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-13 01:54 +0000
      Re: Python 3 regex? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-01-12 18:53 -0800
        Re: Python 3 regex? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-13 05:34 +0000
          Re: Python 3 regex? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-01-13 08:01 -0800
        Re: Python 3 regex? wxjmfauth@gmail.com - 2015-01-13 11:19 -0800
          Re: Python 3 regex? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-14 14:02 +0100
            Re: Python 3 regex? alister <alister.nospam.ware@ntlworld.com> - 2015-01-14 15:11 +0000
              Re: Python 3 regex? wxjmfauth@gmail.com - 2015-01-14 10:10 -0800
            Re: Python 3 regex? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-15 11:33 +1100
              Re: Python 3 regex? wxjmfauth@gmail.com - 2015-01-14 23:03 -0800
                Re: Python 3 regex? wxjmfauth@gmail.com - 2015-01-15 00:19 -0800
              Re: Python 3 regex? wxjmfauth@gmail.com - 2015-01-15 04:49 -0800
    Re: Python 3 regex? Steven D'Aprano <steve@pearwood.info> - 2015-01-13 06:39 +0000
      Re: Python 3 regex? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-01-13 09:09 -0800
        Re: Python 3 regex? Rick Johnson <rantingrickjohnson@gmail.com> - 2015-01-13 10:17 -0800
  Re: Python 3 regex? Steven D'Aprano <steve@pearwood.info> - 2015-01-13 04:36 +0000
    Re: Python 3 regex? alister <alister.nospam.ware@ntlworld.com> - 2015-01-13 13:23 +0000
      Re: Python 3 regex? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-01-13 15:58 +0200
    Re: Python 3 regex? Rustom Mody <rustompmody@gmail.com> - 2015-01-14 21:03 -0800
    Re: Python 3 regex? Rustom Mody <rustompmody@gmail.com> - 2015-01-14 21:08 -0800

csiph-web