Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
http[^'"\]\[]+
/
gm
Input 1
1
New
i am new to regex, so any help is really appreciated. i have an expression to identify a url : (http[^'"]+) Unfortunately on some urls i get additional square brackets in the end For instance "http://example.com]]" On the result want to receive "http://example.com" How do i get rid of those brackets with the help of the regex i wrote above?
Substitution
i am new to regex, so any help is really appreciated. i have an expression to identify a url : (http[^'"]+) Unfortunately on some urls i get additional square brackets in the end For instance "http://example.com]]" On the result want to receive "http://example.com" How do i get rid of those brackets with the help of the regex i wrote above?