Replaced shorthand character classes matching digits in Regular Expressions.
Added a test case in the RegexPatternTestCases class.