reutil

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package reutil has regexp util funcs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(config string, strs ...string) string

Build builds a regexp for strings.

Config options:

i - ignore case
^ - add ^ start anchor
a - add \b start anchor
q - quote each string with \Q\E
b - add \b end anchor
$ - add $ end anchor

func Join

func Join(quote bool, strs ...string) string

Join joins strings into a regexp (ie, `(str 0|str 1|...)`), optionally quoting each string with \Q\E.

func Taginfo

func Taginfo(config string, infos ...*taginfo.Taginfo) string

Taginfo builds a regexp for tag info.

See Build for confg options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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