Regex conversion with pound and thousand separators