Its just a string
my $regex = qr!(?i)\btest\b!; [download]
In reply to Re^2: Regex in string to be used for matching. by Anonymous Monk in thread Regex in string to be used for matching. by swares