Home Download Buy Blog Forum Support

Find and replace, filename variabe

Find and replace, filename variabe

Postby Marin on Thu Dec 13, 2012 10:23 am


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?

filename= test1.htm
to be replaced: <a href="#anchor1">Jump to anchor1</a>
to be replaced with <a href="test1.htm#anchor1">Jump to anchor1 in test1.htm</a>

Thanks in advance
Posts: 5
Joined: Tue Mar 27, 2012 9:51 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 17 guests