@roger64
Oh! forgiveness for being so succinct.
The correct code is:
Code:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
return match.group().replace("?","@?").replace("!","@!").replace(";","@;").replace(":","@:")
Of course, you also have to remove the n-b-spaces, before the other characters.