Hello,
im trying to create a new rule which inserts a new tag behind <body>, this works quite well so far:
s|<body<span>[^>]*>|<body><xx stat.php="">|sigU
The Problem is that most Websites start with <body class="xxx"> or <body id="xxx"> and so on, how can i get the code between <body ...and...=""> to the other side?
Can someone help me?
regards from austria,
Ben
If you put parts of the pattern in parentheses you can refer to them
in the substitution by $1, $2 ...
For details see the "js-annoyances" example in the filter documentation:
http://www.privoxy.org/user-manual/filter-file.html
If the documentation isn't clear enough, please let us know so
we can improve it.