regexlint - simple console application for regex validation, e.g. in CI pipelines for checking trust domains from configuration files
Supported syntax
- Go
- PCRE (PERL, PHP)
regex: invalid-regex())
command
regexlint pcre "invalid-regex())"conf.yaml
headers:
cors: https:\/\/.*test-app.comcommand
regexlint go conf.yaml headers.corsfile.json
{
"headers": {
"cors": "https:\/\/.*test-app.com"
}
}command:
regexlint pcre conf.json headers.corsfile.yaml
headers:
cors1: https:\/\/.*test-app.com
cors2: https:\/\/.*test-app.comcommand
regexlint go conf.yaml headers.cors1,headers.cors2file.txt
string
https:\/\/.*test-app.com
command
regexlint pcre file.txt row-1file.txt
string
https:\/\/.*test-app.com
command
regexlint pcre file.txt row-all