Getting and using the filename in a regex expression
I want to use the filename to add an id to an expression but I don't know how and I can't find the answer on the web.
For example: I'm in the file name File001.html
I want a function to modify this string: ' ></h1>'
to get this string: 'id="File001"></h1>'
and do it recursively.
Thank you. (I hope I'm in the good forum)
Last edited by jiembe; 04-04-2020 at 12:19 PM.
|