Welcome to WebmasterWorld Guest from 54.146.211.105

Forum Moderators: open

Message Too Old, No Replies

dreamweaver find/replace help

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

New User

10+ Year Member

joined:Oct 23, 2002
posts:26
votes: 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?

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

Senior Member from GB 

WebmasterWorld Senior Member brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 30, 2002
posts:4843
votes: 2


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.

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

New User

10+ Year Member

joined:Oct 23, 2002
posts:26
votes: 0


thanks, but no luck :-(