add stripMedia()

This commit is contained in:
Damien Elmes 2010-01-29 20:20:00 +09:00
parent ec263d0d63
commit 863d3d8319

View file

@ -119,6 +119,11 @@ def mediaRefs(string):
l.append((full, fname, repl))
return l
def stripMedia(txt):
for (reg, x) in regexps:
txt = re.sub(reg, "", txt)
return txt
# Rebuilding DB
##########################################################################