7 lines
155 B
Haskell
7 lines
155 B
Haskell
import Text.Regex
|
|
|
|
str = "I am a string"
|
|
|
|
case matchRegex (mkRegex ".*string$") str of
|
|
Just _ -> putStrLn $ "ends with 'string'"
|
|
Nothing -> return ()
|