I have a couple of matches that I'm using to extract data from a string:
Thanks, Bill# Injection For Lymphangiography[75999] $orderName =~ /^(.*)\[(\d*)\]/; my $orderNameString = $1; # Lentigo maligna melanoma [172.9] $diagnosis =~ /^(.*)\s\[(\d*)\]/; my $diagnosisString = $1;
In reply to $1 returning value from previous match by wistephens
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |