Documentation
¶
Overview ¶
Package pcre is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl, with just a few differences. Some features that appeared in Python and PCRE before they appeared in Perl are also available using the Python syntax, there is some support for one or two .NET and Oniguruma syntax items, and there is an option for requesting some minor changes that give better JavaScript compatibility.
Index ¶
- type Option
- type Regexp
- func (re *Regexp) Close()
- func (re *Regexp) Exec(subject []byte, options Option, out []int32) (int, error)
- func (re *Regexp) FindIndex(b []byte, options Option) (loc []int32, err error)
- func (re *Regexp) Fullinfo(what int32) (int32, error)
- func (re *Regexp) ReplaceAll(b, repl []byte, options Option) (r []byte, err error)
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Regexp ¶
type Regexp struct {
// contains filtered or unexported fields
}
func MustCompile ¶
MustCompile is like Compile but panics if the expression cannot be parsed. It simplifies safe initialization of global variables holding compiled regular expressions.
Click to show internal directories.
Click to hide internal directories.