I've been trying to play around with regular expressions on Dreamweaver using a few guides but I cant see to get them to do what I need.

Basically if I have a tag like <a href="whatever"> I need it to find everytime theres a <a href="whatever"> and replace it with <a href="whatever.html">

The text in "whatever" changes though, its not always the same.

Anyone can give me an example on how one would achieve this? It would help me figure out my other problems if I had an example for this.

    11 days later

    Hi

    I am not sure if I have got this right, you need to replace whatever with whatever.html from within the code on a page?

    If that is the case then go to edit>find replace, I am using DW 7

    Hope this helps.

    Phil

      You could put both the web address into a variable like $address and the extension into a variable like $extension and then combine them:

      Link to:

      <?php echo $address ?>.<?php echo $extension ?>

      Something like that at least.

        Write a Reply...