Test Case for Question #3 in DWITE 2007-2008 High School Round 4
Contest: DWITE 2007-2008 High School Round 4
Question: #3
Input File: DATA3.txt
Output File: OUT3.txt
Input
This is an <a>example link</a>.
<a rel="" href="http://dwite.org/">link with rel tag</a>
<a href="http://compsci.ca/" rel="nofollow">link with nofollow</a>
<a href="http://compsci.ca/blog" rel="external">more rels</a>
text with href="" and rel="nofollow" outside of <a>link</a>
Output
<a rel="nofollow">example link</a>
<a rel="nofollow" href="http://dwite.org/">link with rel tag</a>
<a href="http://compsci.ca/" rel="nofollow">link with nofollow</a>
<a href="http://compsci.ca/blog" rel="external nofollow">more rels</a>
<a rel="nofollow">link</a>