Expand description
§regex-pii-rs
Detect and redact common PII (emails, NA-format phones, US SSNs,
credit-card-shaped numbers, prefixed API keys) without pulling in
the regex crate. Hand-rolled scanners, zero deps.
§Example
use regex_pii_rs::{find, redact};
let s = "Contact jane.doe@example.com or 555-123-4567.";
let hits = find(s);
assert!(hits.iter().any(|f| f.kind == "email"));
assert!(!redact(s).contains("jane.doe"));Structs§
- Finding
- One detection.