Searched refs:regularExpression (Results 1 - 2 of 2) sorted by last modified time

/libcore/luni/src/main/java/java/lang/
H A DString.java1739 * Tests whether this string matches the given {@code regularExpression}. This method returns
1751 * @throws NullPointerException if {@code regularExpression == null}
1754 public boolean matches(String regularExpression) { argument
1755 return Pattern.matches(regularExpression, this);
1759 * Replaces all matches for {@code regularExpression} within this string with the given
1769 * @throws NullPointerException if {@code regularExpression == null}
1773 public String replaceAll(String regularExpression, String replacement) { argument
1774 return Pattern.compile(regularExpression).matcher(this).replaceAll(replacement);
1778 * Replaces the first match for {@code regularExpression} within this string with the given
1788 * @throws NullPointerException if {@code regularExpression
1792 replaceFirst(String regularExpression, String replacement) argument
1812 split(String regularExpression) argument
1830 split(String regularExpression, int limit) argument
[all...]
/libcore/luni/src/main/java/java/util/regex/
H A DPattern.java359 * Returns a compiled form of the given {@code regularExpression}, as modified by the
373 public static Pattern compile(String regularExpression, int flags) throws PatternSyntaxException { argument
374 return new Pattern(regularExpression, flags);
411 * Tests whether the given {@code regularExpression} matches the given {@code input}.
412 * Equivalent to {@code Pattern.compile(regularExpression).matcher(input).matches()}.
419 public static boolean matches(String regularExpression, CharSequence input) { argument
420 return new Matcher(new Pattern(regularExpression, 0), input).matches();

Completed in 69 milliseconds