Ive got a links on the form <a href="file.html#chapter1"> which I want to transform to <a href="class.php?class=file#chapter1">.
To be more spesific, I first need find all links which contain '.html' (I dont need to parse those who dont), then add 'class.php?class=' to the beginning of these links, and finally remove '.html'.
The problem herein is how to find the links which contain '.html' and add the prefix. Removing '.html' is no problem.
All suggestions are highly appreciated.
Cheers
Rolf