regexp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package regexp implements some utilitily function for access regexp group values via index or name

Index: 0 1 2 3 Name: "" "name1" "name2" "name3" FirstMatch []string{"THe Whold Matched String", "Other", "SubMatched", "String"} AllMatch []FirstMatch{}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Regexp

type Regexp struct {
	*regexp.Regexp
	// contains filtered or unexported fields
}

func Compile

func Compile(expr string) (*Regexp, error)

func CompilePOSIX

func CompilePOSIX(expr string) (*Regexp, error)

func MustCompile

func MustCompile(expr string) *Regexp

func MustCompilePOSIX

func MustCompilePOSIX(expr string) *Regexp

func Wrap

func Wrap(r *regexp.Regexp) *Regexp

func (*Regexp) All

func (r *Regexp) All(s string) [][]string

func (*Regexp) AllByIndex

func (r *Regexp) AllByIndex(s string, index int) []string

func (*Regexp) AllByName

func (r *Regexp) AllByName(s, name string) []string

func (*Regexp) ByIndex

func (r *Regexp) ByIndex(s string, index int) string

func (*Regexp) ByName

func (r *Regexp) ByName(s, name string) string

func (*Regexp) First

func (r *Regexp) First(s string) []string

func (*Regexp) Names

func (r *Regexp) Names() map[string]int

Jump to

Keyboard shortcuts

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