View Single Post
Old 04-04-2020, 12:05 PM   #1
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
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.
jiembe is offline   Reply With Quote