vmregex

package
v0.0.0-...-2c802aa Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package vmregex provides a VM regex engine(VM engine).

Index

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
}

Regexp has a VM and regexp string.

func Compile

func Compile(re string) *Regexp

Compile is a wrapper function of NewRegexp().

func NewRegexp

func NewRegexp(re string) *Regexp

NewRegexp return a new Regexp.

func (*Regexp) Match

func (re *Regexp) Match(s string) (start, end int)

Match returns whether the input string matches the regular expression.

Jump to

Keyboard shortcuts

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