"David May" wrote:
> Could we have a sample text file for task 3 for unit testing purposes?
> I am also wondering about issues such as greater-than and less-than symbols ocurring in the text where they are used as mathematical sybols instead of delimiters.
> E.g. 0<x, and x>-1.
Any simple textfiles are suitable, such as the ones in Exercise sheet 3.
You may safely assume that the files used for testing will only have '<' and '>' around
the terms required in the index, and that each '<' will be followed by '>' on the same line.
Obviously, files with any HTML tags are unsuitable.
This task is about simple pattern matching, and not parsing.