Changed the regex to repalce digits

Changed the regex to repalce digits
Created a couple of Functions to make analysis easy

Created a couple of functions to make analysis easy