2 specific replace difficulties

General questions about using WildEdit

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
giffen
Posts: 2
Joined: Mon Dec 20, 2004 4:10 pm

2 specific replace difficulties

Post by giffen »

I am trying to remove each instance of :
addTocInfo("<varying string>")

where <varying string> might have any number of characters.

I have found some but not all of them.

In addition,
I would like to remove all scripts from an html page, i.e.
<script>.*</script>

but I would like to do so even if it spans multiple lines

Thanks in advance.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Using Regular expression and Replacement format:

Code: Select all

Find what addTocInfo\("<.*?>"\)
Replace with Empty

Code: Select all

Find what <script>.*?</script>
Replace with Empty
I have also used the POSIX format which can be found under Options.
Note that both examples will find your strings on multiple lines.
Hope that helps
Then I open up and see
the person fumbling here is me
a different way to be
giffen
Posts: 2
Joined: Mon Dec 20, 2004 4:10 pm

Thanks!!

Post by giffen »

It was exactly what I needed.
Post Reply