Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<![:\/])\/\/.*$
/
gm

Description

Doesn't get confused by the url values like "https://www.example.com" or "file:///some.txt"

Submitted by Redu - 10 months ago (Last modified 10 months ago)