Extending regex when instantiating object

Pull request for issue #67