regex correction and output update
regex correction and output update