val compile : string ‑> [ `Direct ] pattern
val rcompile : string ‑> [ `Reverse ] pattern
val find : ?start:int ‑> pattern:[ `Direct ] pattern ‑> string ‑> int
Search for pattern
in the string, left-to-right.
val rfind : ?start:int ‑> pattern:[ `Reverse ] pattern ‑> string ‑> int
Search for pattern
in the string, right-to-left.