Forum Moderators: open
<a href="Apulia.php">Apulia</a><br>
I want to have the Apulia.php as the link name, as opposed to Apulia, and I DONT want to have to write Apulia.php twice like so:
<a href="Apulia.php">Apulia.php</a><br>
I just want Apulia.php mentioned once. Is there another link format that will allow this? Help!
------
PS The reason for this strange Q - I have a textfile with a long list of filenames (thousands)
Apulia.php
Austria.php.....etc.
And I want to use a simple find and replace to wrap html code around these to make them html links. Easy - if links didnt have the problematic structure I have outlined above.
[edited by: hermes at 6:37 am (utc) on July 10, 2006]
I want to have the Apulia.php as the link name, as opposed to Apulia, and I DONT want to have to write Apulia.php twice
This makes no sense.
There is only one way, in html, for the destination of a link (the value of the href attribute) and the link text to be the same, and that's for them each to contain the same value.
[edit]Ah, but it turns out you have a good reason for wanting what you do ;-)
If you have a good text editor (even Dreamweaver is capable of this) that lets you use regular expressions in the find-and-replace dialogue, you will be able to do this.
However, you'll need somebody more at home with regular expressions than I am to help out. Or you could start with a tutorial [google.ca].
-b
[/edit]
[edited by: bedlam at 6:43 am (utc) on July 10, 2006]
Say you have a file full of links like this
<a href="aye.php">aye</a><br>
<a href="bee.php">bee</a><br>
<a href="see.php">see</a><br>
Rather than going all the way down and doing them one by one, just find </a> and replace it with .php</a>