Community Patterns

Community Library Entry

1

Regular Expression
Created·2020-07-26 10:53
Flavor·PCRE (Legacy)

/
(\d{4})(?=\d)
/
gm
Open regex in editor

Description

You can use this pattern to mask your raw credit card's number, like this one:

1111222233334444 => 1111-2222-3333-4444

Submitted by anonymous