Help for this page
if ($_ =~ m/($regex)/ && $regex =~ /(.*)/s) { ... Now $1 will contain $regex ... }