Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let string2opt (s:string) =
- let mutable ret = RegexOptions.ECMAScript
- for c in s do
- match c with
- | 's' -> ret <- ret ||| RegexOptions.Singleline
- | 'm' -> ret <- ret ||| RegexOptions.Multiline
- | 'i' -> ret <- ret ||| RegexOptions.IgnoreCase
- | _ -> ()
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement