experimental

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Package experimental contains experimental features that are not part of the standard library regexp package. There is no API stability guarantee for this package even across minor version updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileLatin1

func CompileLatin1(expr string) (*re2.Regexp, error)

CompileLatin1 is like regexp.Compile but causes the matching to treat the input as arbitrary bytes rather than unicode strings. This is similar behavior to the rsc.io/binaryregexp package.

func MustCompileLatin1

func MustCompileLatin1(str string) *re2.Regexp

MustCompileLatin1 is like CompileLatin1 but panics if the expression cannot be parsed. It simplifies safe initialization of global variables holding compiled regular expressions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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