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:
parent
5ee24ae98d
commit
d69711cb1e
@ -441,7 +441,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
|
|||||||
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
|
pattern = re.compile(r'\b((http|ftp)://\S+[\w/]|'
|
||||||
r'RFC[- ]?(\d+)|'
|
r'RFC[- ]?(\d+)|'
|
||||||
r'PEP[- ]?(\d+)|'
|
r'PEP[- ]?(\d+)|'
|
||||||
r'(self\.)?(\w+))\b')
|
r'(self\.)?(\w+))')
|
||||||
while 1:
|
while 1:
|
||||||
match = pattern.search(text, here)
|
match = pattern.search(text, here)
|
||||||
if not match: break
|
if not match: break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user