Regular Expressions 101

Community Patterns

prevent-sanitzation

1

Regular Expression
PCRE (PHP <7.3)

/
^\s*(https?|ftp|mailto|tel|file):.*(?!\.(js|html))$
/
gm

Description

no description available

Submitted by anonymous - 9 years ago