I have a react native input component that takes a regex and emit a boolean if the regex matches.
I wanted to do the similar thing but return a strin