Regular Expressions 101

Community Patterns

Otp Extraction

0

Regular Expression
PCRE (PHP <7.3)

/
^\d+(?=\sis)|(?<=is\s)\d+?$
/
gm

Description

It will used for otp extraction from sms

Submitted by anonymous - 3 years ago