Remove unnecessary \b. It was causing the RE to miss the tailing

slash on strings like "http://www.python.org/ is good".
This commit is contained in:
Neil Schemenauer 2002-03-24 23:02:07 +00:00
parent 5ee24ae98d
commit d69711cb1e
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
r'RFC[- ]?(\d+)|'
r'PEP[- ]?(\d+)|'
r'(self\.)?(\w+))\b')
r'(self\.)?(\w+))')
while 1:
match = pattern.search(text, here)
if not match: break