Provides information about a succesful match.
This class provides methods to access the details of a match.
A class to step through a sequence of regex matches
An extractor object that yields the groups in the match.
An extractor object for Matches, yielding the matched string
Quotes replacement strings to be used in replacement methods.
Quotes replacement strings to be used in replacement methods.
Replacement methods give special meaning to backslashes (\
) and
dollar signs ($
) in replacement strings, so they are not treated
as literals. This method escapes these characters so the resulting
string can be used as a literal replacement representing the input
string.
The string one wishes to use as literal replacement.
A string that can be used to replace matches with text
.
"CURRENCY".r.replaceAllIn(input, Regex quoteReplacement "US$")
This object defines inner classes that describe regex matches and helper objects. The class hierarchy is as follows: