+ "The Lighting advanced by beating the Philadelphia Flyers in the Eastern \n"
+ "Conference final. <p>\n"
+ "</body></html>\n";
Lexer lexer;
Parser parser;
RegexFilter filter;
NodeIterator iterator;
int count;
lexer = new Lexer (html);
parser = new Parser (lexer);
filter = new RegexFilter ("(19|20)\\d\\d([- \\\\/.](0[1-9]|1[012])[- \\\\/.](0[1-9]|[12][0-9]|3[01]))?");
count = 0;
for (iterator = parser.extractAllNodesThatMatch (filter).elements (); iterator.hasMoreNodes ();)
{
assertEquals ("text wrong", target, iterator.nextNode ().toHtml ());
count++;