Lines 3515-3523
Link Here
|
3515 |
continue |
3515 |
continue |
3516 |
old_value = re.escape(old_value); |
3516 |
old_value = re.escape(old_value); |
3517 |
mycontent = re.sub(old_value+"$", new_value, mycontent) |
3517 |
mycontent = re.sub(old_value+"$", new_value, mycontent) |
3518 |
mycontent = re.sub(old_value+"(\s)", new_value+"\1", mycontent) |
3518 |
mycontent = re.sub(old_value+"(\s)", new_value+"\\1", mycontent) |
3519 |
mycontent = re.sub(old_value+"(-[^a-zA-Z])", new_value+"\1", mycontent) |
3519 |
mycontent = re.sub(old_value+"(-[^a-zA-Z])", new_value+"\\1", mycontent) |
3520 |
mycontent = re.sub(old_value+"([^a-zA-Z0-9-])", new_value+"\1", mycontent) |
3520 |
mycontent = re.sub(old_value+"([^a-zA-Z0-9-])", new_value+"\\1", mycontent) |
3521 |
f = open(dbdir+"/"+myfile, "w") |
3521 |
f = open(dbdir+"/"+myfile, "w") |
3522 |
f.write(mycontent) |
3522 |
f.write(mycontent) |
3523 |
f.close() |
3523 |
f.close() |