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 | <struct:struct_yo_id_64661> | |
_group_names | <struct:struct_yo_id_62215> |
impl(RegexMatch, ...)
new : (RegexMatch) fn(value : String, index : usize, input : String, groups : <struct:struct_yo_id_64661>, group_names : <struct:struct_yo_id_62215>) -> RegexMatchParameters
| Name | Type | Notes |
|---|---|---|
value | String | |
index | usize | |
input | String | |
groups | <struct:struct_yo_id_64661> | |
group_names | <struct:struct_yo_id_62215> |
Returns: RegexMatch
value : (RegexMatch) fn(self : RegexMatch) -> Stringindex : (RegexMatch) fn(self : RegexMatch) -> usizeinput : (RegexMatch) fn(self : RegexMatch) -> Stringgroup : (RegexMatch) fn(self : RegexMatch, idx : usize) -> <enum:enum_yo_id_4590>named_group : (RegexMatch) fn(self : RegexMatch, name : String) -> <enum:enum_yo_id_4590>group_count : (RegexMatch) fn(self : RegexMatch) -> usize