homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
dreamweaver find/replace help
tarheel2002




msg:933947
 9:07 pm on Dec 4, 2002 (gmt 0)

I'm trying to strip some ASP tags from a bunch of pages formatted as follows:

<%=FourRadio("A2_1")%>
<%=FourRadio("A2_2")%>
<%=FourRadio("A2_3")%> ...

I looked into the help files for using regular expressions as well as several posts on the forums but am not having any luck figuring them out. Basically, I need to completely remove any tag with the above format regardless of the text contained within the " ".

Is there an automated way of doing this or will I have to spend hours manually deleting several hundred tags?

 

brotherhood of LAN




msg:933948
 3:46 am on Dec 5, 2002 (gmt 0)

Hi tarheel2002,

<%=FourRadio("A2_1")%>
<%=FourRadio("A2_2")%>
<%=FourRadio("A2_3")%>

So they go up in 1's......and all of them are like this? What number do they go up to? ....

The regular expression will need to take this into account if you want to do it in one foul swoop.

Try using something like
<%=FourRadio("A2_\d{1,3}")%>

\d just means its a numeric character and the {1,3} means its only a match if there is between one and 3 numbers after the A2_ bit.

Mind and backup your site before doing anything like this :)

/added
not sure if DW regexp is any different from PHP or Perl's.....but \d{1,3} seems pretty standard for any flavour.

tarheel2002




msg:933949
 1:36 pm on Dec 5, 2002 (gmt 0)

thanks, but no luck :-(

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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved