[Tutor] regexp
Dinara Vakhitova
di.marvellous at gmail.com
Fri Nov 4 23:34:13 CET 2011
Hello,
I need to find the words in a corpus, which letters are in the alphabetical
order ("almost", "my" etc.)
I started with matching two consecutive letters in a word, which are in
the alphabetical order, and tried to use this expression: ([a-z])[\1-z],
but it won't work, it's matching any sequence of two letters. I can't
figure out why... Evidently I can't refer to a group like this, can I? But
how in this case can I achieve what I need?
Thank you.
--
*Yours faithfully,
Dinara Vakhitova*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111105/1a496448/attachment.html>
More information about the Tutor
mailing list