FSharpVerbalExpressions


VerbEx

Namespace: FsVerbalExpressions
Parent Module: VerbalExpression

Composable immutable wrapping type for System.Text.RegularExpressions.Regex.

Constructors

ConstructorDescription
new(...)
Signature: (regularExpression:string * regexOptions:RegexOptions * matchTimeout:TimeSpan) -> VerbEx

CompiledName: .ctor

new(regularExpression, regexOptions)
Signature: (regularExpression:string * regexOptions:RegexOptions) -> VerbEx

CompiledName: .ctor

new(regularExpression)
Signature: regularExpression:string -> VerbEx

CompiledName: .ctor

new(regexOptions)
Signature: regexOptions:RegexOptions -> VerbEx

CompiledName: .ctor

new()
Signature: unit -> VerbEx

CompiledName: .ctor

Instance members

Instance memberDescription
Capture(input arg2)
Signature: input:string -> string -> string

Match and select groupname value.

GroupNameFromNumber(n)
Signature: n:int -> string option

Gets the group name that corresponds to the specified group number.

GroupNames()
Signature: unit -> string array

Returns an array of capturing group names for the regular expression.

GroupNumberFromName(groupName)
Signature: groupName:string -> int option

Returns the group number that corresponds to the specified group name.

GroupNumbers()
Signature: unit -> int array

Returns an array of capturing group numbers that correspond to group names in an array.

IsMatch(input, startAt)
Signature: (input:string * startAt:int) -> bool

Indicates whether the regular expression finds a match in the input string beginning at the specified starting position.

IsMatch(input)
Signature: input:string -> bool

Indicates whether the regular expression finds a match in the input string.

Match(input, startAt, length)
Signature: (input:string * startAt:int * length:int) -> FsMatch

Searches the specified input string for the first occurrence of the regular expression beginning at the starting position for the length.

Match(input, startAt)
Signature: (input:string * startAt:int) -> FsMatch

Searches the specified input string for the first occurrence of the regular expression beginning at the specified starting position.

Match(input)
Signature: input:string -> FsMatch

Searches the specified input string for the first occurrence of the regular expression.

Matches(input, startAt)
Signature: (input:string * startAt:int) -> FsMatch []

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position.

Matches(input)
Signature: input:string -> FsMatch []

Searches the specified input string for all occurrences of a regular expression.

MatchTimeout
Signature: TimeSpan

Gets the time-out interval of the current instance.

CompiledName: get_MatchTimeout

Regex
Signature: Regex

The underlying System.Text.RegularExpressions.Regex

CompiledName: get_Regex

RegexOptions
Signature: RegexOptions

Enumerated values to use to set regular expression options.

CompiledName: get_RegexOptions

Replace(input, evalutor, count, startAt)
Signature: (input:string * evalutor:MatchEvaluator * count:int * startAt:int) -> string

In input string beginning at start at position replaces a specified maximum number of strings that match a regular expression with string returned by MatchEvaluator delegate.

Replace(...)
Signature: (input:string * replacement:string * count:int * startAt:int) -> string

In input string beginning at start at position replaces a specified maximum number of strings that match regular expression with replacement string.

Replace(input, evalutor, count)
Signature: (input:string * evalutor:MatchEvaluator * count:int) -> string

In input string replaces a specified maximum number of strings that match a regular expression with string returned by MatchEvaluator delegate.

Replace(input, replacement, count)
Signature: (input:string * replacement:string * count:int) -> string

In input string replaces a specified maximum number of strings that match regular expression with replacement string.

Replace(input, evalutor)
Signature: (input:string * evalutor:MatchEvaluator) -> string

In input string replaces all strings that match regular expression with string returned by MatchEvaluator delegate.

Replace(input, replacement)
Signature: (input:string * replacement:string) -> string

In input string replaces all strings that match regular expression pattern with replacement string.

RightToLeft
Signature: bool

Indicates whether the regular expression searches from right to left.

CompiledName: get_RightToLeft

Split(input, count, startAt)
Signature: (input:string * count:int * startAt:int) -> string array

Splits input string, begining at start position, a specified maximum number of times into an array of substrings at the positions defined by regular expression.

Split(input, count)
Signature: (input:string * count:int) -> string array

Splits input string a specified maximum number of times into an array of substrings at the positions defined by regular expression.

Split(input)
Signature: input:string -> string array

Splits input string into an array of substrings at the positions defined by regular expression.

Fork me on GitHub