Text.Regex.TDFA.Run is the main module for matching a DFA against a String. Many of the associated functions are exported to other modules to help match against other types.
Documentation
findMatch :: Regex -> ByteString -> Maybe MatchArraySource
findMatchAll :: Regex -> ByteString -> [MatchArray]Source
countMatchAll :: Regex -> ByteString -> IntSource