RE leaves me totally confuzzzeddded. Yep, so confuised I'm having
trouble spelling it. Sp this one line will replace both words and give a
reliable result?
Barnaby Scott wrote:
[snip]
> No idea if it has anything to do with your problem, but it struck me
> that the iswikiword() function (and processword() which seems to be a
> helper for it) could be replaced with one line, and it would be reliable!
>
> def iswikiword(word):
> return bool(re.match('^([A-Z][a-z]+){2,}$', word))
>
> Of course you need to import re, but that seems a small price to pay!
>
> HTH
>
> Barnaby Scott
>
>
--
end
Very Truly yours,
- Kirk Bailey,
Largo Florida
kniht
+-----+
| BOX |
+-----+
think
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor