regexpKit

package
v3.0.38 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToRegexp

func StringToRegexp(str string, borderArgs ...bool) (*regexp.Regexp, error)

StringToRegexp

PS: 主要是处理 传参str 中的"*".

@param str (1) 可以为"",此时:第1个返回值将匹配任意字符串,第2个返回值为nil;

(2) 不会进行trim操作;
(3) 不同于原生的 regexp.Compile().

@param borderArgs 边界匹配

Types

This section is empty.

Jump to

Keyboard shortcuts

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