What I would do is strip the url and re-append it
The original article within say the Health feed is something like this
http://www.ctv.ca/CTVNews/Health/201...umbers-101209/
and the print version is something like this:
http://www.ctv.ca/servlet/ArticleNew...hub=PrintStory
so what you would wanna do is strip the url after the
http://www.ctv.ca/CTVNews/Health/ in the original url
that would leave you with two indexes.
1)
http://www.ctv.ca/CTVNews/Health/
2) /20101209/nurses-numbers-101209/
then simply re split the second index so you get
1) 20101209
2) nurses-numbers-101209
then simply piece it back together
notice that this would only work for the health section. so you would have to take and use some for statements and if statements and a regexpression search to check and see if health is contained in the url. or whatever feeds you might have then break the url accordingly.
By the way the above code is not tested and will more than likely fail but you should get the general concept of how to go about it... Good luck.