Cleaning a support email before you paste it anywhere
Suppose a customer wrote in: "Hi, I am Jane Roe. My card 4111 1111 1111 1111 was charged twice. Call me on +44 20 7946 0958 or mail jane.roe@example.com. Refunds can go to GB82 WEST 1234 5698 7654 32." You want to paste it into a bug report, or ask a chatbot to summarise it. Pasted here with every kind ticked and Jane Roe added as a word, it becomes: "Hi, I am [REDACTED]. My card [CARD] was charged twice. Call me on [PHONE] or mail [EMAIL]. Refunds can go to [IBAN]."
The table under the result shows five rows: one word, one card, one phone, one email and one IBAN, each with the exact text that was removed. That list is how you check the tool did what you expected. If a row is missing, the detail was written in a form the pattern did not recognise, and you can add it as a word. If a row is wrong, untick that kind, or keep it and accept the extra mask.
The checks behind the card and IBAN kinds are what keep the false alarms down. A card number is only masked if its digits pass the Luhn check, so order number 4111 1111 1111 1112 stays as it is. An IBAN is only masked if its country code, check digits and account part pass the mod-97 check that banks use, so a random string of letters and digits does not qualify. IP addresses must have four parts from 0 to 255, or be a valid IPv6 address, so a time such as 10:30:45 is left alone.
Choosing the mask is about who reads the result. Labels make the redaction obvious and keep the text easy to follow, which suits a bug report or a chatbot. Blocks and stars keep the length of each value, so columns in a log or a fixed-width export still line up. All three remove the original characters from the result; nothing is hidden behind formatting that someone could undo.
The limits are real. Patterns find details written in common shapes; they do not understand the text. A name, a street address or a date of birth in an ordinary sentence is only found if you list it as a word. The phone pattern is loose enough to catch some long reference numbers. Text is capped at 2 MB at a time so the page stays responsive. Read the result once before you share it.