match package:regex-applicative
Attempt to match a string of symbols against the regular expression.
Note that the whole string (not just some part of it) should be
matched.
Examples:
Text.Regex.Applicative> match (sym 'a' <|> sym 'b') "a"
Just 'a'
Text.Regex.Applicative> match (sym 'a' <|> sym 'b') "ab"
Nothing
Return matched symbols as part of the return value