Here is what ive been working with sofar...
This is what im using in the find section - ([img[)(.*)(]])
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs): return match.group().replace('[img[,<img"')
What im attempting to achieve is something like this
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs): return match.group().replace('[img[(.*)]],<img"(.*)/>)
basically grouping a word(and surrounding characters) and modify it in the replace function. My aim is to be able to do this with multiple strings in a row. That is why im using "replace(" as i can put that multiple times in a row.
A single example of i/o is listed below.
[img[imagename.jpg]]
<img"imagename.jpg"/>