FSharpAux


Regex

Namespace: FSharpAux

Regex module for functional use of regular expressions

Nested types and modules

TypeDescription
RegexOptions

Provides enumerated values to use to set regular expressions options

ModuleDescription
Active

Functions and values

Function or valueDescription
createRegex regexOptions pattern
Signature: regexOptions:RegexOptions -> pattern:string -> Regex

Creates a regex

parse regexStr line
Signature: regexStr:string -> line:string -> string list

Returns the group values of the first occurencing match

parseAll regexStr line
Signature: regexStr:string -> line:string -> seq<string list>

Returns a seq of group values matching the pattern

tryParseValue regexStr line
Signature: regexStr:string -> line:string -> string option

Returns the first occurencing value of the match

Fork me on GitHub