my $str = 'abc'; PassRegex($str =~ /b/i, 'parm2', 'parm3');