You are viewing limited content. For full access, please sign in.

Question

Question

Auto-redact email addresses with pattern matching

asked two days ago

Does anyone have an auto-redaction workflow for email addresses they could share? I can't seem to get the pattern matching to work, but I can get other simple text strings to work in the same document.

This is the regex I'm trying: ^[^\s@]+@[^\s@]+\.[^\s@]+$

0 0

Replies

replied 15 hours ago

Try something like  ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ so it's more specific in what is allowed in an address.

What other strings did you test?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.