Re: [Tutor] ipython, PYTHONPATH, on a MAC

2010-02-16 Thread Michael Fourman
tutor mailing list archive at Nabble.com. > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > Professor Michael Fourman FBCS CITP Director, iDEA

Re: [Tutor] Example of use of (?P) and (?P=name) in Python regular expressions?

2010-01-06 Thread Michael Fourman
I've used (?P=name) recently in an implementation of the porter2 stemming algorithm from http://snowball.tartarus.org/algorithms/english/stemmer.html This includes the rule: ## if the word ends with a double remove the last letter (so hopp -> hop) where we ## Define a double as one of ## bb dd