Regex Applicative Functor

Give a way to apply captures values on a given function