util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package util contains some util functions used by jiebago.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegexpSplit

func RegexpSplit(re *regexp.Regexp, s string, n int) []string

RegexpSplit split slices s into substrings separated by the expression and returns a slice of the substrings between those expression matches. If capturing parentheses are used in expression, then the text of all groups in the expression are also returned as part of the resulting slice.

This function acts consistent with Python's re.split function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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