Removed usage of regular expression in since Bash < 3.2 does not have it and sadly Git Bash in Windows is version 3.1

Signed-off-by: Michael Welter <michael@cetoncorp.com>