Regular Expression

Rescript

let re = %re("/^ryan.*myat$/i") // starts with ryan .. ends with myat
Js.log(Js.Re.test_(re, "Ryanzanthumyat")) // true

OCaml

(* using Re package *)
let re = Re.Perl.re {|^ryan.*myat$|} |> Re.no_case |> Re.compile ;;
Re.execp re "RyanzanthumyaT" (* true *)