Matching
IsMatch
The System.Text.RegularExpressions.Regex Class provides several overloads of isMatch. The same overloads are available in the VerbEx class and as individually
named functions in the FsRegEx module, including overloads and functions using RegexOptions. Timeout is not supported at this time.
is match on first occurence
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: |
|
is match starting at position
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: |
|
FsMatch
FsMatch provides the functionality in the System.Text.RegularExpressions.Match Class, but returning arrays of objects instead of special collections.
iterate over matches
1: 2: 3: 4: 5: 6: |
|
first match and iteration
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
namespace FsVerbalExpressions
module FsRegEx
from FsVerbalExpressions
from FsVerbalExpressions
module VerbalExpression
from FsVerbalExpressions
from FsVerbalExpressions
val partNumbers : string []
Full name: Matching.partNumbers
Full name: Matching.partNumbers
val partNumber : string
val printfn : format:Printf.TextWriterFormat<'T> -> 'T
Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.printfn
Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.printfn
val isMatch : regularExpression:string -> input:string -> bool
Full name: FsVerbalExpressions.FsRegEx.isMatch
Full name: FsVerbalExpressions.FsRegEx.isMatch
val verbEx : VerbalExpression.VerbEx
Full name: Matching.verbEx
Full name: Matching.verbEx
Multiple items
type VerbEx =
new : unit -> VerbEx
new : regularExpression:string -> VerbEx
new : regexOptions:RegexOptions -> VerbEx
new : regularExpression:string * regexOptions:RegexOptions -> VerbEx
new : regularExpression:string * regexOptions:RegexOptions * matchTimeout:TimeSpan -> VerbEx
member Capture : input:string -> string -> string
member GroupNameFromNumber : n:int -> string option
member GroupNames : unit -> string array
member GroupNumberFromName : groupName:string -> int option
member GroupNumbers : unit -> int array
...
Full name: FsVerbalExpressions.VerbalExpression.VerbEx
--------------------
new : unit -> VerbalExpression.VerbEx
new : regexOptions:System.Text.RegularExpressions.RegexOptions -> VerbalExpression.VerbEx
new : regularExpression:string -> VerbalExpression.VerbEx
new : regularExpression:string * regexOptions:System.Text.RegularExpressions.RegexOptions -> VerbalExpression.VerbEx
new : regularExpression:string * regexOptions:System.Text.RegularExpressions.RegexOptions * matchTimeout:System.TimeSpan -> VerbalExpression.VerbEx
type VerbEx =
new : unit -> VerbEx
new : regularExpression:string -> VerbEx
new : regexOptions:RegexOptions -> VerbEx
new : regularExpression:string * regexOptions:RegexOptions -> VerbEx
new : regularExpression:string * regexOptions:RegexOptions * matchTimeout:TimeSpan -> VerbEx
member Capture : input:string -> string -> string
member GroupNameFromNumber : n:int -> string option
member GroupNames : unit -> string array
member GroupNumberFromName : groupName:string -> int option
member GroupNumbers : unit -> int array
...
Full name: FsVerbalExpressions.VerbalExpression.VerbEx
--------------------
new : unit -> VerbalExpression.VerbEx
new : regexOptions:System.Text.RegularExpressions.RegexOptions -> VerbalExpression.VerbEx
new : regularExpression:string -> VerbalExpression.VerbEx
new : regularExpression:string * regexOptions:System.Text.RegularExpressions.RegexOptions -> VerbalExpression.VerbEx
new : regularExpression:string * regexOptions:System.Text.RegularExpressions.RegexOptions * matchTimeout:System.TimeSpan -> VerbalExpression.VerbEx
member VerbalExpression.VerbEx.IsMatch : input:string -> bool
member VerbalExpression.VerbEx.IsMatch : input:string * startAt:int -> bool
member VerbalExpression.VerbEx.IsMatch : input:string * startAt:int -> bool
val labeledPartNumbers : string []
Full name: Matching.labeledPartNumbers
Full name: Matching.labeledPartNumbers
val start : int
System.String.IndexOf(value: string) : int
System.String.IndexOf(value: char) : int
System.String.IndexOf(value: string, comparisonType: System.StringComparison) : int
System.String.IndexOf(value: string, startIndex: int) : int
System.String.IndexOf(value: char, startIndex: int) : int
System.String.IndexOf(value: string, startIndex: int, comparisonType: System.StringComparison) : int
System.String.IndexOf(value: string, startIndex: int, count: int) : int
System.String.IndexOf(value: char, startIndex: int, count: int) : int
System.String.IndexOf(value: string, startIndex: int, count: int, comparisonType: System.StringComparison) : int
System.String.IndexOf(value: char) : int
System.String.IndexOf(value: string, comparisonType: System.StringComparison) : int
System.String.IndexOf(value: string, startIndex: int) : int
System.String.IndexOf(value: char, startIndex: int) : int
System.String.IndexOf(value: string, startIndex: int, comparisonType: System.StringComparison) : int
System.String.IndexOf(value: string, startIndex: int, count: int) : int
System.String.IndexOf(value: char, startIndex: int, count: int) : int
System.String.IndexOf(value: string, startIndex: int, count: int, comparisonType: System.StringComparison) : int
val isMatchAt : regularExpression:string -> startAt:int -> input:string -> bool
Full name: FsVerbalExpressions.FsRegEx.isMatchAt
Full name: FsVerbalExpressions.FsRegEx.isMatchAt
val matches : regularExpression:string -> input:string -> FsMatch []
Full name: FsVerbalExpressions.FsRegEx.matches
Full name: FsVerbalExpressions.FsRegEx.matches
module Array
from Microsoft.FSharp.Collections
from Microsoft.FSharp.Collections
val iter : action:('T -> unit) -> array:'T [] -> unit
Full name: Microsoft.FSharp.Collections.Array.iter
Full name: Microsoft.FSharp.Collections.Array.iter
val m : FsMatch
property FsMatch.Value: string
property FsMatch.Index: int
val regExpr : string
Full name: Matching.regExpr
Full name: Matching.regExpr
val sentence : string
Full name: Matching.sentence
Full name: Matching.sentence
val m : FsMatch
Full name: Matching.m
Full name: Matching.m
val firstMatch : regularExpression:string -> input:string -> FsMatch
Full name: FsVerbalExpressions.FsRegEx.firstMatch
Full name: FsVerbalExpressions.FsRegEx.firstMatch
property FsMatch.Success: bool
val matchesAt : regularExpression:string -> startAt:int -> input:string -> FsMatch []
Full name: FsVerbalExpressions.FsRegEx.matchesAt
Full name: FsVerbalExpressions.FsRegEx.matchesAt
property FsMatch.Length: int