Skip to content

Instantly share code, notes, and snippets.

@honewatson
Created July 1, 2021 03:40
Show Gist options
  • Save honewatson/446ca0ecb3a6a1630b6ddbbbe0497937 to your computer and use it in GitHub Desktop.
Save honewatson/446ca0ecb3a6a1630b6ddbbbe0497937 to your computer and use it in GitHub Desktop.
regex.spl cc
| rex mode=sed field=cc_matches "s/([\d]{4}\-?)([\d]{2})[\d]{2}(\-?)[\d]{4}(\-?)([\d]{3}\d?)/\1\2XX\3XXXX\4\5/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment