Like many web content authors, over the past few years I've had many occasions when I've needed to clean up a bunch of HTML files that have been generated by a word processor or publishing package. Initially, I used to clean up the files manually, opening each one in turn, and making the same set of updates to each one. This works fine when you only have a few files to fix, but when you have hundreds or even thousands to do, you can very quickly be looking at weeks or even months of work.
Platform(s):
Added: 28-Oct-2008
Updated: 28-Oct-2008
Member Reviews ( 0 )
Using Perl and Regular Expressions to Process HTML Files - Part 2
In Part 1 we had a quick look at what Perl and regular expressions are, and introduced the idea of using them to process HTML files. In this part we'll develop a Perl script to process an HTML file.
Added: 28-Oct-2008
Updated: 28-Oct-2008
Member Reviews ( 0 )
Using Perl and Regular Expressions to Process HTML Files - Part 3
In Part 1 we had a quick look at what Perl and regular expressions are, and introduced the idea of using them to process HTML files. In Part 2 we developed a Perl script to process a single HTML file. In this part we'll look at how to process multiple files.
Added: 28-Oct-2008
Updated: 28-Oct-2008
Member Reviews ( 0 )
Using Perl and Regular Expressions to Process HTML Files - Part 4
In Part 1 we had a quick look at what Perl and regular expressions are, and introduced the idea of using them to process HTML files. In Part 2 we developed a Perl script to process a single HTML file. In part 3 we looked at one way of processing multiple files. In this part we'll look at an additional way to import files for processing.
Added: 28-Oct-2008
Updated: 28-Oct-2008
Member Reviews ( 0 )
Using Perl and Regular Expressions to Process HTML Files - Part 5
In Part 1 we had a quick look at what Perl and regular expressions are, and introduced the idea of using them to process HTML files. In Part 2 we developed a Perl script to process a single HTML file. In part 3 we looked at one way of processing multiple files. In Part 4 we looked at how to read in all the files in the current directory. In this, the last part, we'll look at how to read in specific files in specific directories.