Export to GitHub

google-app-engine-samples - issue #3
Cccwiki - wrong regular expression for the WikiWords class
Posted on Apr 16, 2008 by
Grumpy Horse
The regular expressions in the provided code doesn't seem to work (line 248):
self.regexp = re.compile(r'[A-Z][a-z]+([A-Z][a-z]+)+')
I've tried instead:
self.regexp = re.compile(r'(\w(\s)?)+')
and it works.
Comment #1
Posted on Apr 16, 2008 by Grumpy HorseAlso, try this (the previous works only with "," as separator, sorry!) self.regexp = re.compile(r'[a-zA-Z0-9]+')
Comment #3
Posted on Dec 30, 2010 by Quick Kangaroosandeep
Comment #4
Posted on Jan 18, 2011 by Massive Bearsifeddinehasan@hotmail.com
Status: New
Labels:
Type-Defect
Priority-Medium