- Go environment setup https://golang.org/doc/install
- gcc
apt-get install gcc
- libpcre++-dev
apt-get install pcre++-dev
- Text file called pcre.txt with regexes. The format should be the following: "$regex\t$Context"
Example:
^(\"|').+?\\1$\tI am a context string
go get github.com/ren-/pcre-matcher-service
- Locate
src/github.com/ren-/pcre-matcher-service
in your $GOPATH go install
go build
Now you can run the executable ./pcre-matcher-service
to start the server. It will bind on port 5000.
Send a HTTP POST to http://localhost:5000/matchUrls with the following data:
{
"urls":["http://google.com", "http://yahoo.com"]
}
Licensed under GNU GENERAL PUBLIC LICENSE, please read the LICENSE file.