creating a new function
matcher create_matcher(string regex ,string input )
Creates a matcher from a pattern and input string.