Yes, but because you are using
.
, you need to set the
s
flag. In this case, you'll find that the regex will
run-on from URL to URL. You should also be careful about having the
m
flag set. Sometimes it's convenient for testing multiple things at a time, but it's not set in the actual regex (unless you set it in your regex), so the performance will be different, if you are using
^
or
$
in your regex.