Do you want something like this?
if (/\b(API|APIN|UWI)\s*\./) { do_something if $1 eq 'API'; do_another if $1 eq 'APIN'; do_else if $1 eq 'UWI'; }
All in brackets is remembered for future use. Text matched in first () is stored in variable $1.
In reply to Re: Quick question on matching
by ph0enix
in thread Quick question on matching
by licking9Volts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |