If you need to edit the links in your own posts it might be worth it to see if there is a wordpress bulk-update plugin that suites your needs, but in JavaScript on the page you can do something like
$('a[target="_blank"]').each(function() {
var href = $(this).attr('href');
if (href.indexOf('www.abc.com.au') > -1) {
$(this).attr('href', href.replace('www.abc.com.au', 'www.xyz.com.au'));
}
});
which finds all a
tags with target _blank and then updates the href if it contains the original domain by replacing that string with the new one.