Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Match Single Line (//) Comments in JSON
Open Workspace
PCRE2 (PHP)
Match
Updated 2024-02-26 00:20
1
Regular Expression
/
(?<!
[
:
\/
]
)
\/\/
.
*
$
/
gm
Description
Doesn't get confused by the url values like "
https://www.example.com
" or "file:///some.txt"
Submitted by
Redu