Letter class in re

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Mon Mar 9 06:37:45 EDT 2015


On 03/09/2015 11:23 AM, Antoon Pardon wrote:
> I am using PLY for a parsing task which uses re for the lexical
> analysis. Does anyone
> know what regular expression to use for a sequence of letters? There is
> a class for alphanumerics but I can't find one for just letters, which I
> find odd.
>
> I am using python 3.4
>

how about [a-zA-Z] ?




More information about the Python-list mailing list