Regex Test mode¶
In order to ease regex development, we added a regex test mode to
pihole-FTL which can be invoked like
pihole-FTL regex-test doubleclick.net
doubleclick.net against all regexs in the gravity database), or
pihole-FTL regex-test doubleclick.net "(^|\.)double"
doubleclick.net against the CLI-provided regex
You do NOT need to be
sudo for this, any arbitrary user should be able to run this command. The test returns
0 on match and
1 on no match and errors, hence, it may be used for scripting.