- Index
- »
- sys
- »
- RegexMatcher
type
RegexMatcher
RegexMatcher is used in matching operations on a regular expression.
methods
end |
Return end index+1 of the given |
---|---|
find |
Attempt to find the next match. |
group |
Return the substring captured by the matching operation. |
groupCount |
Return the number of capturing groups or zero if no match. |
matches |
Match the entire region against the pattern. |
replaceAll |
Replace every sequence which matches the pattern with the given replacement string. |
replaceFirst |
Replace the first sequence which matches the pattern with the given replacment string. |
start |
Return the start index of the given |
Slot Details
end
find
group
src
Str? group(Int group := 0)
Return the substring captured by the matching operation. Group index zero denotes the entire pattern and capturing groups are indexed from left to right starting at one. Return null if group failed to match part of the input. Throw exception if failed to match input or group index is invalid.