1 import "JavaBuiltin" as Java
3 importJava "java.util.regex.Pattern" where
6 compile :: String -> Pattern
7 matcher :: Pattern -> String -> <Proc> Matcher
9 importJava "java.util.regex.Matcher" where
12 matches :: Matcher -> <Proc> Boolean
14 doMatch pattern text = matches (matcher pattern text)
16 main = doMatch (compile ".*xxx.*") "fffxxooxxxlll"