StringFormat, Substring, Optionals and more...
-
Equivalent to the [a-zA-Z]
character class.
Corresponds to all characters.
Corresponds to the ASCII characters.
Corresponds to no characters.
Equivalent to the [a-zA-Z0-9_]
character class.
Returns a
CharPredicate
that evaluates true if both this and
that
predicate
evaluate to true.
Returns a CharPredicate that matches any of chars
.
CharPredicate.is(char ch)
Returns a CharPredicate for the range of characters: [from, to]
.
Returns a CharPredicate that matches any of chars
.
Returns the negation of this CharPredicate
.
CharPredicate.or(char ch)
Returns a
CharPredicate
that evaluates true if either this predicate evaluates to true,
or the character is
ch
.
Returns a
CharPredicate
that evaluates true if either this or
that
predicate
evaluate to true.
CharPredicate.orRange(char from,
char to)
Returns a
CharPredicate
that evaluates true if either this predicate evaluates to true,
or the character is in the range of
[from, to]
.
CharPredicate.range(char from,
char to)
Returns a CharPredicate for the range of characters: [from, to]
.
Returns a
CharPredicate
that evaluates true if both this and
that
predicate
evaluate to true.
Returns a Pattern
that matches the first non-empty sequence of consecutive characters
identified by matcher
.
Returns a Pattern
that matches the first character found by charMatcher
.
Returns a Pattern
that matches the last character found by charMatcher
.
Returns a Pattern
that matches from the beginning of the input string, a non-empty
sequence of leading characters identified by matcher
.
Returns a
CharPredicate
that evaluates true if either this or
that
predicate
evaluate to true.
Returns an otherwise equivalent Pattern
, except it only matches if it's next
to the beginning of the string, the end of the string, or the separator
character(s).
Returns an otherwise equivalent Pattern
, except it requires the
beginning of the match must either be the beginning of the string, or be separated from the rest
of the string by the separatorBefore
character; and the end of the match must either
be the end of the string, or be separated from the rest of the string by the
separatorAfter
character.
Returns a Pattern
that matches from the end of the input string, a non-empty sequence
of trailing characters identified by matcher
.