mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lauris BH
ad2642a8aa
|
5 years ago | |
---|---|---|
.. | ||
.travis.yml | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
chelper.c | 5 years ago | |
chelper.h | 5 years ago | |
constants.go | 5 years ago | |
go.mod | 5 years ago | |
quotemeta.go | 5 years ago | |
regex.go | 5 years ago |
README.md
go-oniguruma
This repository is a fork of moovweb/rubex - a simple regular expression library (based on oniguruma) that supports Ruby's regex syntax.
The rubex was originally created by Zhigang Chen (zhigang.chen@moovweb.com or zhigangc@gmail.com). It implements all the public functions of Go's Regexp package, except LiteralPrefix.
By the benchmark tests in regexp, the library is 40% to 10X faster than Regexp on all but one test. Unlike Go's regexp, this library supports named capture groups and also allow "\\1"
and "\\k<name>"
in replacement strings.
The library calls the oniguruma regex library for regex pattern searching. All replacement code is done in Go.
Install all (oniguruma and rubex):
# linux (debian/ubuntu/...)
sudo apt-get install libonig-dev
# osx (homebrew)
brew install oniguruma
go install -i .