homepage Welcome to WebmasterWorld Guest from 107.20.131.154
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
Wildcard search and replace in Dreamweaver
zackattack




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

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

 

limbo




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

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]

zackattack




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

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

thanks again

ZA

limbo




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

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')

zackattack




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

Thanks Limbo

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

ZA

sloppyno




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

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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved