In reply to Re^2: Odd regex results with g switch by JamesNC in thread Odd regex results with g switch by JamesNC