Skip to content

Regex package

This package provides regular expressions.

{
  "type": "library"
}

Install

{
  "dependencies": {
    "Regex": "pen:///regex"
  } 
}

Regex'Expression module

This module provides functions to compile and match regular expressions.

Types

Expression

A regular expression.

type Expression {
  # ...
}

Functions

New

Compile a regular expression.

\(s string) Expression | error

Matches

Check if a regular expression matches with a string or not.

\(e Expression, s string) boolean

Match

Match a regular expression with a string and return matched groups.

\(e Expression, s string) [string | none] | none