Regular Expressions 101

Community Patterns

matches 4 or 6 or 8 digit which might be otp

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(^|\s)([0-9]{4}|[0-9]{6}|[0-9]{8})(\s|\.|,)[^0-9]
/
gi

Description

test

Submitted by test - a year ago