Python RegExp exception
Posted
by Jasie
on Stack Overflow
See other posts from Stack Overflow
or by Jasie
Published on 2010-05-04T03:12:24Z
Indexed on
2010/05/04
3:18 UTC
Read the original article
Hit count: 250
How do I split on all nonalphanumeric characters, EXCEPT the apostrophe?
re.split('\W+',text)
works, but will also split on apostrophes. How do I add an exception to this rule?
Thanks!
© Stack Overflow or respective owner