Help with using KFileReplace regular expressions
I need to use a regular expression in KFileReplace to replace: <a href="*.htm"> by <a href="*.html"> But if I enter the above two as the search and replace strings respectively and say "go", (enable regular expressions is ON) I get zero replacements, even though the app says it has scanned all the 58 files in my working directory. Also, I need to account for the fact that there may be a line-break between the <a tag and the href value, so please tell me how to do that too. If there is a line-break, I need to include a line-break in the replace string too. I am prevented from using simply "*.htm" -> "*.html", because I also have external links on my site, and the servers I point to may or may not redirect html to htm, if the file they hold ends in htm and not html. But if I use <a href="*.htm"> I avoid this problem, since I have all external links on my site labeled as class="ext" (i.e. <a class="ext" href="*.htm">) so I can give them a different colour. So if I enter <a href="*.htm"> I avoid this problem. Please tell me what I can do. Thanks. -- Penguin #395953 resides at http://samvit.org subsisting on SUSE Linux 10.0 with KDE 3.5
participants (1)
-
Shriramana Sharma