package server-reason-react

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Js.ReSource

Sourcetype t
Sourcetype result
Sourceval index : result -> int
Sourceval input : result -> string
Sourceval fromString : string -> t
Sourceval fromStringWithFlags : string -> flags:string -> t
Sourceval flags : t -> string
Sourceval global : t -> bool
Sourceval ignoreCase : t -> bool
Sourceval lastIndex : t -> int
Sourceval setLastIndex : t -> int -> unit
Sourceval multiline : t -> bool
Sourceval source : t -> string
Sourceval sticky : t -> bool
Sourceval unicode : t -> bool
Sourceval dotAll : t -> bool

Returns whether the dotAll (s) flag is set

Sourceval exec : str:string -> t -> result option
Sourceval test : str:string -> t -> bool
Sourceval captures : result -> string option array
Sourceval groups : result -> (string * string) list

Returns all named capture groups as a list of (name, value) pairs

Sourceval group : string -> result -> string option

Returns the value of a named capture group, or None if not found