Hi,
I'm getting the same problem with Computerworld (where you need the article number from the middle of a comma separated URL to translate to the print page).
document.onanchorlink = function(link) {
if (link.depth == 1) {
// var artid = link.uri.match(".*\/.*\,(.*)\,.*")[1] <<my first try
var artid = link.uri.match("(.*)\/(.*)$")[2]
artid = artid.match("(.*)\,(.*)")[1]
link.uri = "http://www.computerworld.com/printthis/2005/0,4814," + artid + ",00.html"
}
};
This is trying to map
http://www.computerworld.com/hardwar...XXXXXX,00.html
to
http://www.computerworld.com/printth...XXXXXX,00.html
I've tried both comma and %2c and \x2c to represent commas, but to no avail. I get the error "Cannot read property "1" from null".
Strangely enough this works on some Computerworld URLs in Windows but not on others, but on Linux it fails on all Computerworld URLs
Cheers!
...Les...