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
/
<VirtualHost[*:0-9\s]+>([\S\s]+?)<\/VirtualHost>
/
g
Input 1
... # First VHost... <VirtualHost *:80 *:8082> # Any number of configs # and set up options for # Apache </VirtualHost> # Second VHost... <VirtualHost *:80 *:8082> # Any number of configs # and set up options for # Apache </VirtualHost> # Third VHost... <VirtualHost *:80 *:8082> # Any number of configs # and set up options for # Apache </VirtualHost> ....
Extraction
... # First VHost... <VirtualHost *:80 *:8082> # Any number of configs # and set up options for # Apache </VirtualHost> # Second VHost... <VirtualHost *:80 *:8082> # Any number of configs # and set up options for # Apache </VirtualHost> # Third VHost... <VirtualHost *:80 *:8082> # Any number of configs # and set up options for # Apache </VirtualHost> ....