Regular Expressions 101

Community Patterns

prevent-sanitzation

1

Regular Expression
PCRE (PHP <7.3)

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

Description

Loading markdown...
Submitted by anonymous - 9 years ago