Test for a unicode string

goldtech goldtech at worldpost.com
Thu Oct 25 15:13:11 EDT 2007


snip...
> > Like:
> >  if  unicode string:
> >       print  'string's line #'
> >  else:
> >       process the string
>

If I use "re.UNICODE"  like:  m = re.match(r"\w+", s, re.UNICODE)

then it seems to fix my problem.  Trying to read as much as I can on
unicode....




More information about the Python-list mailing list