The following seems to work. I tried it on their news page with success.
Filter:
(.*)newscientist\.com/article/dn(.{5,5}).*
Rewrite as:
$1newscientist.com/article.ns?id=dn$2&print=true
The expression (.{5,5}) captures any string of exactly five characters. (Literally, any string of length between 5 and 5.)
|