Thank you. I will try to play with that. I'm no programmer, though.
What I did is search for "#n(\d+)" (in #n1, for example)
Code:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
text='#'
text2= '_'
return text + file_name + text2 + match.group(1)
And it would return:
#OEBPS/1.html_1
I would only want:
#1_1
(of course, i could use regex to clean the unwanted portion afterward, but I would be nicer to have it done in one regex function, and I could learn something as well)