std.regex

Modules

std.regex.types

Bindings for rust-lang/regex

Types

type Error = <opaque>

type Regex = <opaque>

#[derive(Eq, Show)]
type Match = { start : Int, end : Int, text : String }

Values

#[implicit]
let eq_Match : Eq Match

Eq a defines equality (==) on a

#[implicit]
let show_Match : Show Match

Show a represents a conversion function from a to a readable string.

let new : String -> Result Error Regex

let is_match : Regex -> String -> Bool

let find : Regex -> String -> Option Match

let captures : Regex -> String -> Option (Array (Option Match))

let error_to_string : Error -> String