Skip to content

Instantly share code, notes, and snippets.

@christian-taillon
Created January 20, 2025 03:36
Show Gist options
  • Select an option

  • Save christian-taillon/cef2f1ae046dcff6d2387d22e1eb8dac to your computer and use it in GitHub Desktop.

Select an option

Save christian-taillon/cef2f1ae046dcff6d2387d22e1eb8dac to your computer and use it in GitHub Desktop.
regex pattern for use with tokenGaurd.
{
"credit_card": "\\b\\d{4}[-\\s]?\\d{4}[-\\s]?\\d{4}[-\\s]?\\d{4}\\b",
"custom_email": "\\b[A-Za-z0-9._%+-]+@company\\.com\\b",
"zip_code": "\\b\\d{5}(?:-\\d{4})?\\b"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment