007durgesh219 / google-app-engine-samples

Automatically exported from code.google.com/p/google-app-engine-samples
0 stars 0 forks source link

Cccwiki - wrong regular expression for the WikiWords class #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by antonio....@gmail.com on 16 Apr 2008 at 1:40

GoogleCodeExporter commented 8 years ago
Also, try this (the previous works only with "," as separator, sorry!)
    self.regexp = re.compile(r'[a-zA-Z0-9]+')

Original comment by antonio....@gmail.com on 16 Apr 2008 at 1:48

GoogleCodeExporter commented 8 years ago
malout

Original comment by sandeepd...@gmail.com on 30 Dec 2010 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
sandeep

Original comment by sandeepd...@gmail.com on 30 Dec 2010 at 11:56

GoogleCodeExporter commented 8 years ago
sifeddinehasan@hotmail.com

Original comment by sifeddin...@hotmail.com on 18 Jan 2011 at 8:19