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
find all link(<a>) tags expect your links in href attribute
Open Workspace
JavaScript
Match
Created 2015-07-29 11:09
11
Regular Expression
/
<
(
a
+
)
(?!
(?:
href=
(
[
"|'
]
+
)(
[
http:
\/\/
]
)*
link
\.
com
(
[
\/
]
)?(
.
*?
)
[
"|'
]
)
)
*
[^
>
]
*
>
(
.
*?
)
[^
>
]
>
/
gm
Description
YourLink - not found AnotherLink - found
Submitted by
KoT