Revision 10283
Added by Aaron Marcuse-Kubitza over 11 years ago
repl | ||
---|---|---|
43 | 43 |
if in_ != '': |
44 | 44 |
if text or re.match(r'^\w+$', in_): # match word |
45 | 45 |
in_ = (r'(?:^|(?<=[\s,"])|^:|(?<=[\s,"]):)'+re.escape(in_) |
46 |
+r'(?![[:alnum:]])')
|
|
46 |
+r'(?![a-zA-Z0-9])')
|
|
47 | 47 |
repls.append((r'(?m)'+in_, out)) |
48 | 48 |
stream.close() |
49 | 49 |
def repl_all(str_): |
Also available in: Unified diff
bugfix: bin/*: spell out [:alnum:] as [a-zA-Z0-9] because Python unfortunately doesn't support character classes