Concatenates the pattern with a pattern string and returns a new pattern.
Concatenates the pattern with a group and returns a new pattern.
Returns all named capturing groups in a pattern.
Returns all named capturing groups in a pattern.
Nested groups are also listed recursively.
Returns all named capturing groups in a pattern.
Returns all named capturing groups in a pattern.
Nested groups are also listed recursively.
Matches the given string with the pattern and returns matched portions with captured group names.
Matches the given string with the pattern and returns matched portions with captured group names.
The result is empty if the given string does not match with the pattern.
If there are multiple groups of the same name in the pattern,
the result stores all the captured portions in the order of
occurence. These captured portions can be accessed by
getAll()
method on the result. In this case, apply()
or
get()
returns the first one.
Returns named capturing groups in a pattern.
Returns named capturing groups in a pattern.
No nested group is listed.
Returns a pattern string in which the groups are replaced by f
.
Returns a string in which matched portions in instance
are
replaced by f
.
Returns a string in which matched portions in instance
are
replaced by f
.
f
is a map from a group and a matched portion to a
replacement.
Returns named capturing groups with their names.
Returns named capturing groups with their names.
No nested group is listed.
Returns the pattern as Regex
.
Returns the pattern as a string.
Returns the pattern as a string.
A class to describe a pattern with named capturing groups.