wistephens has asked for the wisdom of the Perl Monks concerning the following question:
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $1 returning value from previous match
by tobyink (Canon) on Jul 24, 2014 at 12:51 UTC | |
by wistephens (Initiate) on Jul 24, 2014 at 14:05 UTC | |
|
Re: $1 returning value from previous match
by AnomalousMonk (Archbishop) on Jul 25, 2014 at 00:55 UTC |