Not sure what conditionals buy you here:
sub getvalue { my $s = shift; local $_ = shift; return $+ if /$s[:=](?:(\d+)|"([^"]+)"|\s*(.*?)\s\D)/; "Match not Found"; }
In reply to Re: Conditional Regex
by Anonymous Monk
in thread Conditional Regex
by hsmyers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |