remod

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package remod is the native module "re": regular expressions, with Go's RE2 syntax (TODO.md Q59). Matching takes time linear in the text: there is no backtracking (so no back references), and no pattern can make a match run away.

use re;
local mail = re::compile("(\\w+)@(\\w+)\\.com", "i");
println(mail->groups("Mail ANN@example.com"));   // ["ANN@example.com", "ANN", "example"]
println(mail->replace("a@b.com", "$2:$1"));        // b:a

Index

Constants

This section is empty.

Variables

View Source
var Regexp = &native.Class{Name: "Regexp"}

Regexp is the class re::Regexp: a compiled pattern.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL