The Java interface / Getting started with the Java interface |
IMPORT JAVA java.util.regex.Pattern IMPORT JAVA java.util.regex.Matcher MAIN DEFINE p Pattern DEFINE m Matcher LET p = java.util.regex.Pattern.compile("[a-z]+") LET m = p.matcher("abcdef") DISPLAY m.matches() END MAIN
In this example, the last line of the MAIN module calls an object method that returns a boolean value that is converted to an INTEGER and displayed.