Sublime Forum

Find and replace, filename variabe

#1

Hi,

I wanted to do some regular expression to replace text in my html pages.
In the replaced text, I want to use the filename of the current file.

Is there a variable that I could use in my regular expression to do so?

ex:
filename= test1.htm
to be replaced: Jump to anchor1
to be replaced with Jump to anchor1 in test1.htm

Thanks in advance

0 Likes