Distinct ASCII digit count filter
Keep lines with exactly the chosen number of distinct ASCII digit characters 0–9. Repeated occurrences count once.
Start using
Distinct ASCII digit count filter
The target is an integer from 1 to 10; its default is 6. Each different ASCII character 0–9 counts once per entire line, including leading zeros and digits across separate numbers. Other characters and numeral scripts do not count or get converted. This counts digit kinds, not total digit length or repeat frequency. For target 2, 1122 and 1212 match; 1234 and 999 do not. Matching lines retain text, spaces, duplicates and order; output joins lines with LF. Empty input or no matches gives an empty result. Limit: 100000 characters. No numeric parsing, format validation or download.
Processing takes place locally in your browser.