Match
Tip
This is a builtin dotnet type. The documentation and api interface are generated from dotnet source files.
Represents the results from a single regular expression match.
Fields:
Captures CaptureCollection
Gets a collection of all the captures matched by the capturing group, in innermost-leftmost-first order (or innermost-rightmost-first order if the regular expression is modified with the RegexOptions.RightToLeft option). The collection may have zero or more items.
Groups GroupCollection
Gets a collection of groups matched by the regular expression.
Index number
The position in the original string where the first character of the captured substring is found.
Length number
Gets the length of the captured substring.
Name string
Returns the name of the capturing group represented by the current instance.
Success boolean
Gets a value indicating whether the match is successful.
Value string
Gets the captured substring from the input string.
Methods:
GetPropertyKeys() : string[]
Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts
Result(replacement: string) : string
Returns the expansion of the specified replacement pattern.
Name | Type | Default | Summary |
replacement | string | The replacement pattern to use. |
ToString() : string
Retrieves the captured substring from the input string by calling the Capture.Value property.