regex

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: EPL-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package regex exposes JVM-faithful java.util.regex equivalents for code running on glojure. Static methods (Pattern/compile, Pattern/matches, Pattern/quote) and Pattern flag constants are published through pkgmap under both the bare "Pattern." prefix and the fully qualified Go path. Instance methods on *Pattern and *Matcher (matcher, find, group, ...) are reached at runtime through lang.FieldOrMethod, which dispatches via reflection on the receiver; the gojava regex package uses capitalized, variadic method signatures so the JVM's overloaded forms collapse to a single Go method per name.

Index

Constants

View Source
const (
	CASE_INSENSITIVE = jregex.CASE_INSENSITIVE
	MULTILINE        = jregex.MULTILINE
	LITERAL          = jregex.LITERAL
	DOTALL           = jregex.DOTALL
	UNICODE_CASE     = jregex.UNICODE_CASE
)

Variables

This section is empty.

Functions

func Compile

func Compile(args ...any) *jregex.Pattern

Compile mirrors Pattern.compile(String). Single-arg form; the flag-aware overload is reached via CompileFlags.

func Matches

func Matches(args ...any) bool

Matches mirrors Pattern.matches(regex, input): convenience for a one-shot whole-input match.

func Quote

func Quote(args ...any) string

Quote mirrors Pattern.quote: returns a literal pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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