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
/
(((?:\<|\[)a href=\'|\")?((?:http:\/\/)?((?:www\.)?(?:[\w\d-_]*?\.)+(?:\w{2,4}))(?:\/?)(?:[\w\d-_]+))((?:(?:\'|\")(?:\>|\]))(?:[\w\d-_]+)(?:(?:\<|\[)\/a(?:\>|\])))?)
/
is
Input 1
1
New
[a href='http://vk.com/id11111']ntcn[/a] <a href='http://vk.com/id111111'>ntcn</a> http://vk.com/id71594164
Substitution
[a href='http://vk.com/id11111']ntcn[/a] <a href='http://vk.com/id111111'>ntcn</a> http://vk.com/id71594164