Regular Expressions 101

Community Patterns

mask pin in JSON/XML

0

Regular Expression
PCRE (PHP <7.3)

/
((?:"pin"\s*:\s*"|"secretCode"\s*:\s*"|<pin>|<secretCode>))[0-9]{4}(?:("|<\/pin>|<\/secretCode>))
/
gm

Description

no description available

Submitted by anonymous - 4 years ago