in reply to Re^2: How to replace greedy alternation?in thread How to replace greedy alternation?
That is because there are no capturing parentheses in your regular expression and so $1, $2 and $3 are not affected and thus contain nothing.