That wouldn't work with the content rewrite; it is used with fixed string replacement, what you are looking for would need to match regular expressions.
I instead suggest you to look at the 'trackexits' event plugin, this one already rewrites URL. You could adapt it to not encode the exit link, and instead pass the original link through and just expand it to include the 'target' attribute.
Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking wrote:
I instead suggest you to look at the 'trackexits' event plugin, this one already rewrites URL. You could adapt it to not encode the exit link, and instead pass the original link through and just expand it to include the 'target' attribute.
I'm using this plugin already, so it wasn't a big problem to include the 'target="_blank"' in _encodeExitsCallback. Thanks!
PAINED.NET - 600+ million people could help to create a brand new tomorrow. Now.