[Tutor] Splitting by word boundaries

Neil Schemenauer nas-pytut at python.ca
Thu Aug 14 13:33:41 EDT 2003


Michael Janssen wrote:
> this is important but not enough. re.split(r'\b', 'word boundary') is
> yet infunctional. I've looked through the sources to find out why.

re.findall(r'\w+', ...) should do what is intended.

  Neil



More information about the Tutor mailing list