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
- func Compile(args ...any) *jregex.Pattern
- func IsPattern(value any) bool
- func IsPatternCompat(value any) any
- func Matches(args ...any) bool
- func Quote(args ...any) string
- func ReplaceAll(pattern any, input, replacement string) string
- func ReplaceAllCompat(pattern, input, replacement any) any
- func TranslateJavaPattern(pattern string) string
Constants ¶
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 ¶
Compile mirrors Pattern.compile(String). Single-arg form; the flag-aware overload is reached via CompileFlags.
func IsPatternCompat ¶ added in v0.7.6
func Matches ¶
Matches mirrors Pattern.matches(regex, input): convenience for a one-shot whole-input match.
func ReplaceAll ¶ added in v0.7.6
func ReplaceAllCompat ¶ added in v0.7.6
func TranslateJavaPattern ¶ added in v0.7.6
Types ¶
This section is empty.