Lua API
On this page

MatchCollection

Inherits from

Tip

This is a builtin dotnet type. The documentation and api interface are generated from dotnet source files.

Represents the set of successful matches found by iteratively applying a regular expression pattern to the input string. The collection is immutable (read-only) and has no public constructor. The T:System.Text.RegularExpressions.Regex.Matches(System.String) method returns a MatchCollection object.

Fields:

Count number

read only

Gets the number of matches.

IsReadOnly boolean

read only

Gets a value that indicates whether the collection is read only.

IsSynchronized boolean

read only

Gets a value indicating whether access to the collection is synchronized (thread-safe).

SyncRoot Object

read only

Gets an object that can be used to synchronize access to the collection.

Methods:

CopyTo(array: Match, arrayIndex: number) : nil

Copies the elements of the collection to an Array, starting at a particular Array index.

Parameters:
NameTypeDefaultSummary
arrayMatch

The one-dimensional Array that is the destination of the elements copied from the collection. The Array must have zero-based indexing.

arrayIndexnumber

The zero-based index in array at which copying begins.

Returns:nil

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string