Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?=.*\/{2}.*)[\w?#.,]+|^(?:(?!\/{2}))[\w?#.,]+
/
gm
Test String
New
//comment code more code code?code //comment it doesn’t matter if http://doesn´t work.. fasd fdds asdsd asdasdas hede
Substitution
Processing...