Regex
This package provides regular expressions.
{ "type": "library"}Install
Section titled “Install”{ "dependencies": { "Regex": "pen:///regex" }}Regex'Expression module
Section titled “Regex'Expression module”This module provides functions to compile and match regular expressions.
Expression
Section titled “Expression”A regular expression.
type Expression { # ...}Functions
Section titled “Functions”Compile a regular expression.
\(s string) Expression | errorMatches
Section titled “Matches”Check if a regular expression matches with a string or not.
\(e Expression, s string) booleanMatch a regular expression with a string and return matched groups.
\(e Expression, s string) [string | none] | none