Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

package com.codename1.util.regex

Regular expressions that are portable across all platforms.

Pattern and Matcher have the shape and the syntax of java.util.regex, and StringRegex holds the regular expression methods of java.lang.String over them. RE is the older, smaller evaluator with its own dialect.

Types

class CharacterArrayCharacterIterator sharedEncapsulates char[] as CharacterIterator
interface CharacterIterator sharedEncapsulates different types of character sources - String, InputStream, …
interface MatchResult sharedWhat one match found: the same shape as java.util.regex.MatchResult.
class Matcher sharedThe same shape as java.util.regex.Matcher, over this package’s Pattern.
class Pattern sharedjava.util.regex.Pattern for the Codename One runtime: a backtracking matcher written for this module, with the JDK’s syntax and the JDK’s answers for the constructs it has.
class PatternSyntaxException sharedThe same shape as java.util.regex.PatternSyntaxException: a pattern that is not one, or that uses a construct this runtime does not have – the description says which.
class RE sharedRE is an efficient, lightweight regular expression evaluator/matcher class.
class RECharacter shared
class RECompiler sharedA regular expression compiler class.
class REDebugCompilerA subclass of RECompiler which can dump a regular expression program for debugging purposes.
class REProgram sharedA class that holds compiled regular expressions.
class RESyntaxException sharedException thrown to indicate a syntax error in a regular expression.
class REUtil sharedThis is a class that contains utility helper methods for this package.
class ReaderCharacterIterator sharedEncapsulates java.io.Reader as CharacterIterator
class StreamCharacterIterator sharedEncapsulates java.io.InputStream as CharacterIterator.
class StringCharacterIterator sharedEncapsulates String as CharacterIterator.
class StringReader shared
class StringRegex sharedThe methods of java.lang.String that take a regular expression, over this package’s Pattern: matches, split, replaceAll and replaceFirst, with the JDK’s syntax.