s/([^([]])A([^)[]])/$1Z$2/;
In reply to Re: look behind in REs by zodiac in thread look behind in REs by tepas