FsRegEx


FsMatch

Namespace: global
Parent Module: FsRegEx

Composable wrapping type for System.Text.RegularExpressions.Match. Represents the results from a single regular expression match.

Constructors

ConstructorDescription
new(regex, fsMatch)
Signature: (regex:Regex * fsMatch:Match) -> FsMatch

CompiledName: .ctor

Instance members

Instance memberDescription
Captures()
Signature: unit -> Capture []

Array 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()
Signature: unit -> FsGroup []

Capturing groups matched by regular expression.

Index
Signature: int

The position in the original string where the first character of the captured substring is found.

CompiledName: get_Index

Length
Signature: int

Returns the length of the captured substring.

CompiledName: get_Length

Match
Signature: Match

Wrapped System.Text.RegularExpressions.Match. Represents the results from a single regular expression match.

CompiledName: get_Match

Result(replacement)
Signature: replacement:string -> string

Returns the expansion of the specified replacement pattern.

Success
Signature: bool

Returns a value indicating whether the match is successful.

CompiledName: get_Success

Value
Signature: string

Returns the captured substring from the input string.

CompiledName: get_Value

Fork me on GitHub