in reply to Storing Regex Patterns in Scalars
my $regex1 = qr{(hello)}; print $1 if 'hello there!' =~ $regex1; [download]