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

alt text

But it's not working.

link|improve this question

45% accept rate
feedback

migrated from stackoverflow.com Feb 4 '10 at 23:58

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 2 down vote accepted

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>

link|improve this answer
ok will try this. – metal gear solid Feb 4 '10 at 13:15
great working thanks. but why dreaweaver's non-regex option not working – metal gear solid Feb 4 '10 at 13:17
feedback

This may help you.

link|improve this answer
feedback

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".

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

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

link|improve this answer
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 4 '10 at 15:52
Thanks for the -1... You do exactly what I said, change to Source Code and simply put <p><strong>Business Development</strong></p> in to find, and replace with <h4>Business Development</h4>... It does work. – William Hilsum Feb 4 '10 at 16:08
still getting wrong – metal gear solid Feb 4 '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 4 '10 at 17:37
I don't want to replace text inside tag i want to change tags only see here <p><strong>Business Development</strong></p> – metal gear solid Feb 4 '10 at 18:21
show 1 more comment
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.