Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Lauris BH bd2335671f
Exclude generated files from language statistics (#11653)
před 4 roky
..
LICENSE Migrate to go-enry new version (#10906) před 4 roky
README.md Migrate to go-enry new version (#10906) před 4 roky
chelper.c Exclude generated files from language statistics (#11653) před 4 roky
chelper.h Exclude generated files from language statistics (#11653) před 4 roky
constants.go Migrate to go-enry new version (#10906) před 4 roky
go.mod Migrate to go-enry new version (#10906) před 4 roky
quotemeta.go Migrate to go-enry new version (#10906) před 4 roky
regex.go Exclude generated files from language statistics (#11653) před 4 roky

README.md

go-oniguruma Test

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

# linux (debian/ubuntu/...)
sudo apt-get install libonig-dev

# osx (homebrew)
brew install oniguruma

go get github.com/go-enry/go-oniguruma

License

Apache License Version 2.0, see LICENSE