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.com
command
regexlint go conf.yaml headers.cors
file.json
{
"headers": {
"cors": "https:\/\/.*test-app.com"
}
}
command:
regexlint pcre conf.json headers.cors
file.yaml
headers:
cors1: https:\/\/.*test-app.com
cors2: https:\/\/.*test-app.com
command
regexlint go conf.yaml headers.cors1,headers.cors2
file.txt
string
https:\/\/.*test-app.com
command
regexlint pcre file.txt row-1
file.txt
string
https:\/\/.*test-app.com
command
regexlint pcre file.txt row-all