Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
config:filter_files [2019/02/01 16:59] – Not that leading white-space is now significant. Other minor edits. digital man | config:filter_files [2019/02/07 19:22] – Mention that C-style escapes are now supported. More examples. digital man | ||
---|---|---|---|
Line 4: | Line 4: | ||
Each line in a filter file may contain a comparison sequence. | Each line in a filter file may contain a comparison sequence. | ||
- | |||
- | **Note**: | ||
- | Prior to v3.17c, leading white-space in filter file lines was ignored. As of v3.17c, leading white-space *is* significant and can be used for filters such " *" to filter (reject) any matches that begin with a leading space character. | ||
===== Comparison Sequences ===== | ===== Comparison Sequences ===== | ||
+ | * Leading white-space characters are ignored | ||
* Sequences of alphabetic letters are treated case-insensitively | * Sequences of alphabetic letters are treated case-insensitively | ||
+ | * C-style string-literal backslash ('' | ||
* Sequences // | * Sequences // | ||
* Sequences // | * Sequences // | ||
Line 16: | Line 15: | ||
* All other sequences are "exact match" string comparisons | * All other sequences are "exact match" string comparisons | ||
- | Examples: | + | ==== Examples |
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
- | ===== IPv4 CIDR Notation | + | === Match strings with the character sequence " |
+ | viagra~ | ||
+ | |||
+ | === Match strings beginning with the character sequence " | ||
+ | [adv]* | ||
+ | |||
+ | === Match strings beginning with a space === | ||
+ | \ * | ||
+ | |||
+ | === Match the string " | ||
+ | administrator | ||
+ | |||
+ | === Match strings that do not begin with the character sequence: "the " === | ||
+ | !the * | ||
+ | |||
+ | ==== IPv4 CIDR Notation ==== | ||
An additional comparison format was introduced in v3.17 (Feb-9-2017) specifically for partial (ranges of) IPv4 address matching following standard [[wp> | An additional comparison format was introduced in v3.17 (Feb-9-2017) specifically for partial (ranges of) IPv4 address matching following standard [[wp> | ||
Line 34: | Line 47: | ||
IPv6 CIDR notation is not supported at this time. | IPv6 CIDR notation is not supported at this time. | ||
+ | |||
===== Trash Can Files ===== | ===== Trash Can Files ===== | ||