Added minor changes to the Regex pattern and Formatted the code to make
it more readable.