Categorygithub.com/topxeq/regexpx
modulepackage
0.0.0-20230721063247-f118dbe089d7
Repository: https://github.com/topxeq/regexpx.git
Documentation: pkg.go.dev

# README

regexpx

convenient version of github.com/topxeq/goback/regexp

# Packages

Package syntax parses regular expressions into parse trees and compiles parse trees into programs.

# Functions

Compile parses a regular expression and returns, if successful, a Regexp object that can be used to match against text.
CompileFreeSpacing parses a regular expression like Compile, but whitespace characters are ignored and # is parsed as the beggining of a line comment.
Match checks whether a textual regular expression matches a byte slice.
MatchString checks whether a textual regular expression matches a string.
MustCompile is like Compile but panics if the expression cannot be parsed.
MustCompileFreeSpacing parses a regular expression like MustCompile, but whitespace characters are ignored and # is parsed as the beggining of a line comment.
QuoteMeta returns a string that quotes all regular expression metacharacters inside the argument text; the returned string is a regular expression matching the literal text.

# Interfaces

Regexp is the representation of a compiled regular expression.