I have an app that solicits regexps from users then uses them to filter data.
Here's a code snippet that greps objects from a list (here named @x) whose regexps match a predefined hunk of text (here named matchtext).
My two questions:my @matches = map { $_->result} grep { my $re = $_->regex; $matchtext =~ /$re/i; } @x;
Hey, my 100th post! Whoop Whoop Whoop Whoop
In reply to User regexps by rkg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |