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
r"
\\\\[\w.]+(?:\\[\w.-]+)+\\[\w-]+(?:\.[\w+-]+)*
"
gm
Input 1
1
New
Here is an example text and we want to use regex to extract the links. The links we are interested in are \\1.123.42.5\foo\bar\file_name and \\remote_node\shared_path\520.38-nonprod\util\file_name. This text can be continued with even more sentences ... \\1.123.42.5\foo\bar\file_name.png