Hi, I have tried to do this for hours but it looks like it is just too difficult for me.
I would like a script to open a file in the current directory and edit it. The file's name is \d{6}.htm The script then needs to search for a line that begins: <a class="nolinkunderline" and delete that line and the one underneath it. Then then it should append an existing file \d(6).txt (i.e, a file with the same filename as the first file but with TXT as its filetype) to the end of the line that is in its entirety <pre> Finally, it should jump to the line </div></body> and replace it with </div> <script type="text/javascript"> var sc_project=8607440; var sc_invisible=1; var sc_security="f3cd5e09"; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>"); </script> <noscript><div class="statcounter"><a title="web analytics" href="http://statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/8607440/0/f3cd5e09/1/" alt="web analytics"></a></div></noscript> </body> Too hard for me. Sorry. Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/