sub Filter { my $Text = shift; return $Text =~ /Hello(?i:one|two|three| )*World/ ? 1 : 0; }
Or:
sub Filter { my $Text = shift; return 0 + $Text =~ /Hello(?i:one|two|three| )*World/; }
Or just:
sub Filter { my $Text = shift; return $Text =~ /Hello(?i:one|two|three| )*World/; }
In reply to Re: Regex Problem
by jwkrahn
in thread Regex Problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |