Help us shape the future of Go! Take the 2026 Go Developer Survey

regexp

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package regexp provides additional regular expression functions.

It provides the following Unicode aware functions:

  • regexp_like(text, pattern),
  • regexp_count(text, pattern [, start]),
  • regexp_instr(text, pattern [, start [, N [, endoption [, subexpr ]]]]),
  • regexp_substr(text, pattern [, start [, N [, subexpr ]]]),
  • regexp_replace(text, pattern, replacement [, start [, N ]]),
  • and a REGEXP operator.

The implementation uses Go regexp/syntax for regular expressions.

https://github.com/nalgeon/sqlean/blob/main/docs/regexp.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobPrefix added in v0.20.1

func GlobPrefix(expr string) string

GlobPrefix returns a GLOB for a regular expression appropriate to take advantage of the LIKE optimization in a query such as:

SELECT column WHERE column GLOB :glob_prefix AND column REGEXP :regexp

func Register

func Register(db *sqlite3.Conn) error

Register registers Unicode aware functions for a database connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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