3

I want to do find and replace for example . In dreamweaver's find and replace

<p><strong>Business Development</strong></p>

into

<h4>Business Development</h4>

I have to change in lots of files.

I'm trying this to type it in search and replace, but it's not working.

Chindraba
  • 1,963
  • 1
  • 11
  • 25
metal gear solid
  • 8,802
  • 55
  • 119
  • 182

5 Answers5

6

You could simply use Dreamweaver's Regex Replace function. (Ctrl-F and check "Use Regular Expression")

Find:

<p><strong>(.*)</strong></p>

Replace:

<h4>$1</h4>

1

This may help you.

Sarfraz
  • 428
  • 2
  • 8
  • 19
1

how about reading the manual? it has all the answers, such as "Search for a specific tag, Containing ...", "Use Regular Expressions", and "Search in Entire Current Local Site".

ax.
  • 131
  • 4
  • The phrase you're looking for is "Read The Friendly Manual", usually abbreviated "RTFM." There may be other interpretations of the acronym. – mpez0 Feb 04 '10 at 13:37
  • i know the phrase - but refrained from using it. because there may be other interpretations :) – ax. Feb 04 '10 at 13:56
0

I saw the answer on your Stack Overflow question, however, I do this sort of thing all the time in Dreamweaver.

Simply change the Search field to Source Code and then it should be able to do it easily if you type your two statements in.

alt text

Gaff
  • 18,569
  • 15
  • 57
  • 68
William Hilsum
  • 116,650
  • 19
  • 182
  • 266
  • i'm not asking about simple find and replace see my question i just given a example Text inside Tag can be changed. – metal gear solid Feb 04 '10 at 15:52
  • Thanks for the -1... You do exactly what I said, change to Source Code and simply put

    Business Development

    in to find, and replace with

    Business Development

    ... It does work.
    – William Hilsum Feb 04 '10 at 16:08
  • still getting wrong – metal gear solid Feb 04 '10 at 17:28
  • Well then - Phrase your question better then before giving a -1! You said replace x with y, doing what I said does that... I use it pretty much on a daily basis.... Have you actually tried it? – William Hilsum Feb 04 '10 at 17:37
  • I don't want to replace text inside tag i want to change tags only see here

    Business Development

    – metal gear solid Feb 04 '10 at 18:21
  • Exactly... So, as I said, if I want to change blabla to blabla I would put both in the search, and it would find and replace. Or, simply put "test" and "argh" in the find/replace, either way, it solves what you asked for in your original question. – William Hilsum Feb 04 '10 at 19:23
0

The Dreamweaver command you're looking for is "change tag" which is dreamweaver cc search and replace interface