Regular Expressions
Homework Three
- You are supporting the web master for a large company.
- This company has thousands of pages of HTML code, and they wish
to standardize all instances of the <tt> some text
</tt> tag usage in their pages.
- Currently, this tag may be upper case or lower case, and the text
internally may or may not have spaces adjacent to the tags.
- The new standard is to make the tag text uppercase, and have no
spaces against either the opening or closing tag.
- Try to handle as many cases as possible.
- Take a list of files specified on the command line, and modify
each file as necessary.
- Report how many modifications were made to each file.
Back to Syllabus
Previous: Perl Script Output
Next: Functional Decomposition