[#14] Remove dependency on regex module.
Merge pull request #15 from 4degrees/14_remove_regex_dependency

For #14: Remove dependency on regex module.