Welcome to WebmasterWorld Guest from 54.211.101.8

Forum Moderators: open

Wildcard search and replace in Dreamweaver

   
12:07 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



Hi

Anyone know if DW can seach and replace using a wildcard.

I need to remove conent between form tags on lots of pages but the content is different in each form.. I was wondering if in DW search and replace there is a way to say all conent between these tags to be removed regardless.

I have googled this but no luck yet

ZA

8:54 pm on Nov 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Zack

You can do this - Dreamweaver allows you to use regular expressions in search queries.

Look at the diaologue box for search and replace and you will see a check box - to use regular expressions click help and it will lead you to the functions of search. It should allow you to do what ever kind of F&R you could think of.

Alternativley search for "regular expression dreamweaver search and replace" - should be what you are looking for.

[edited by: limbo at 9:14 pm (utc) on Nov. 13, 2005]

9:01 pm on Nov 13, 2005 (gmt 0)

10+ Year Member



Thanks I will look into this, not sure what expressions are but know of thier existence

thanks again

ZA

9:15 pm on Nov 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The regular expression you seek is:
[^"]*

so if you want to change all these:

<a class="wildcat" href="lion.html">
<a class="wildcat" href="tiger.html">
<a class="wildcat" href="leopard.html">

to:

<a class="wildcat" href="bigcat.html">

you search for:

<a class="wildcat" href="
[^"]
*">

and replace with:

<a class="wildcat" href="bigcat.html">

(make sure you tick the match case & regular expressions + seclect 'source code')

9:23 pm on Nov 13, 2005 (gmt 0)

10+ Year Member



Thanks Limbo

I will try this out, sounds exactly what I am looking for - :-)

ZA

2:26 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



Hello

Could you help me with this:

Need to find pages that DON'T contain </HEAD>

Hello,

We have an intranet with THOUSANDS of pages... I have tagged most of the pages that have </HEAD> with special code.

I am wanting to find all the pages that DON'T have </HEAD>.

How do I do this with dreamweaver or an external tool

PLEASE help!

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month