Regular Expressions 101

Community Patterns

tel:// and sms:// validator

1

Regular Expression
PCRE (PHP <7.3)

/
^((tel:\/\/|sms:\/\/))?([+])?([0-9]+)
/

Description

Easly to check tel:// or sms:// protocols.

Submitted by Erdem Arslan - 9 years ago