• Stars
    star
    131
  • Rank 266,165 (Top 6 %)
  • Language
    Go
  • Created almost 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Perl Compatible Regular Expression shim for Go

golang-pkg-pcre

This is a Go language package providing Perl-Compatible RegularExpression support using libpcre++. Install the package with the current Debian distribution as follows:

sudo apt-get install libpcre++-dev
go get github.com/glenn-brown/golang-pkg-pcre/src/pkg/pcre

Go programs that depend on this package should import this package as follows to allow automatic downloading:

import "github.com/glenn-brown/golang-pkg-pcre/src/pkg/pcre"

This is a clone of golang-pkg-pcre by Florian Weimer, which has been placed on github so it can be fetched by Go's automatic package installer. The FindIndex() and ReplaceAll() functions were added by Glenn Brown, to mimic functions in Go's default regexp package.