Skip to content

Instantly share code, notes, and snippets.

View Enough7's full-sized avatar
🌴

Paul Enough7

🌴
  • Karlsruhe, Germany
  • 11:15 (UTC +01:00)
View GitHub Profile
@nagat01
nagat01 / gist:1008514
Created June 5, 2011 00:05
F# : Regex.IsMatch example
open System
open System.Text.RegularExpressions
// http://msdn.microsoft.com/en-us/library/ms228595(v=vs.80).aspx#Y300
let regexIsMatchSample lines pattern =
// for line in
List.iteri(fun i line ->
if Regex.IsMatch(line,pattern,RegexOptions.IgnoreCase) then
printfn"%3d : %s" i line) lines
regexIsMatchSample