Revision: 5660 Author: wikipedian Date: 2008-06-30 13:04:44 +0000 (Mon, 30 Jun 2008)
Log Message: ----------- replaceExcept(): added a regular expression for section headers (it was requested on the mailing list).
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-06-29 12:54:25 UTC (rev 5659) +++ trunk/pywikipedia/wikipedia.py 2008-06-30 13:04:44 UTC (rev 5660) @@ -3121,6 +3121,8 @@
exceptionRegexes = { 'comment': re.compile(r'(?s)<!--.*?-->'), + # section headers + 'header': re.compile(r'\r\n=+.+=+ *\r\n'), 'includeonly': re.compile(r'(?is)<includeonly>.*?</includeonly>'), 'math': re.compile(r'(?is)<math>.*?</math>'), 'noinclude': re.compile(r'(?is)<noinclude>.*?</noinclude>'),
pywikipedia-l@lists.wikimedia.org