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

public final class StringRegex

  1. Object
  2. StringRegex
The 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. Each takes the string as its first argument, so s.split(";") becomes StringRegex.split(s, ";").

Methods

public static boolean matches(String s, String regex)
public static String[] split(String s, String regex)
public static String[] split(String s, String regex, int limit)
public static String replaceAll(String s, String regex, String replacement)
public static String replaceFirst(String s, String regex, String replacement)

Inherited methods

Method details

matches

public static boolean matches(String s, String regex)

split

public static String[] split(String s, String regex)

split

public static String[] split(String s, String regex, int limit)

replaceAll

public static String replaceAll(String s, String regex, String replacement)

replaceFirst

public static String replaceFirst(String s, String regex, String replacement)