Module regex/match
regex/match
Match result type — represents the result of a regex match, including the matched text, position, and captured groups.
Types
RegexMatch
object
RegexMatch
A single regex match result.
Fields
| Name | Type | Description |
|---|---|---|
_value | String | |
_index | usize | |
_input | String | |
_groups | ArrayList(Option(String)) | |
_group_names | ArrayList(GroupNameEntry) |
impl(RegexMatch, ...)
new : (RegexMatch) fn(value : String, index : usize, input : String, groups : ArrayList(Option(String)), group_names : ArrayList(GroupNameEntry)) -> RegexMatchParameters
| Name | Type | Notes |
|---|---|---|
value | String | |
index | usize | |
input | String | |
groups | ArrayList(Option(String)) | |
group_names | ArrayList(GroupNameEntry) |
Returns: RegexMatch
value : (RegexMatch) fn(self : RegexMatch) -> Stringindex : (RegexMatch) fn(self : RegexMatch) -> usizeinput : (RegexMatch) fn(self : RegexMatch) -> Stringgroup : (RegexMatch) fn(self : RegexMatch, idx : usize) -> Option(String)named_group : (RegexMatch) fn(self : RegexMatch, name : String) -> Option(String)group_count : (RegexMatch) fn(self : RegexMatch) -> usize