-import "JavaBuiltin" as Java\r
-\r
-importJava "java.util.regex.Pattern" where\r
- data Pattern\r
-\r
- compile :: String -> Pattern\r
- matcher :: Pattern -> String -> <Proc> Matcher\r
-\r
-importJava "java.util.regex.Matcher" where\r
- data Matcher\r
-\r
- matches :: Matcher -> <Proc> Boolean\r
-\r
-doMatch pattern text = matches (matcher pattern text)\r
-\r
-main = doMatch (compile ".*xxx.*") "fffxxooxxxlll"\r
---\r
+import "JavaBuiltin" as Java
+
+importJava "java.util.regex.Pattern" where
+ data Pattern
+
+ compile :: String -> Pattern
+ matcher :: Pattern -> String -> <Proc> Matcher
+
+importJava "java.util.regex.Matcher" where
+ data Matcher
+
+ matches :: Matcher -> <Proc> Boolean
+
+doMatch pattern text = matches (matcher pattern text)
+
+main = doMatch (compile ".*xxx.*") "fffxxooxxxlll"
+--
true
\ No newline at end of file