added regex with params and added result to the switch - couldn't test y...

...et