RosettaCodeData/Task/Regular-expressions/Haskell/regular-expressions-2.hs

4 lines
122 B
Haskell
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
ghci> import Text.Regex.TDFA
ghci> compiled = makeRegex ".*string$" :: Regex
ghci> match compiled "I am a string" :: Bool