Perl style regex matching
let (=~) input pattern =
System.Text.RegularExpressions.Regex.IsMatch(input, pattern)
It lets you match text using let test = "monkey" =~ "monk.+"
notation.
More Related Contents:
- F# : not sure how to start [closed]
- Understanding F# Value Restriction Errors
- How to have two methods calling each other?
- How to constrain one type parameter by another
- F# Functions vs. Values
- F# Tail Recursive Function Example
- Shadowing and Nested function
- Use of `inline` in F#
- How to Async.AwaitTask on plain Task (not Task)?
- How can i convert between F# List and F# Tuple?
- Why are functions in OCaml/F# not recursive by default?
- Why isn’t there a protected access modifier in F#?
- Using keywords as identifiers in F#
- Global operator overloading in F#
- How to write a function for generic numbers?
- F#: let mutable vs. ref
- Correct version of Fsharp.Core
- F# getting a list of random numbers
- Why is F#’s type inference so fickle?
- While or Tail Recursion in F#, what to use when?
- Help me to explain the F# Matrix transpose function
- F# Split list into sublists based on comparison of adjacent elements
- F# changes to OCaml [closed]
- F# interface inheritance failure due to unit
- How does a C++ reference look, memory-wise?
- Pre-incrementation vs. post-incrementation
- Should I pass an std::function by const-reference?
- How to use Assembly Binding Redirection to ignore revision and build numbers
- Change default XML comment snippet in Visual Studio
- Convert a data frame to a data.table without copy