in reply to Regular expressions Containing Octal values?
How about another approach altogether? Try a hash with all the different names as keys and a reference to some canonical name or data table row as value.
my $foostuff = '2-Amino-4-hydroxybutyric acid'; my $barstuff = 'ethanol'; my %substances = ( 'L-homoserine' => \$foostuff, 'L-Homoserine' => \$foostuff, 'beer' => \$barstuff, );
I think that will be much simpler to deal with than a similar number of regexen.
By the way, you don't need to deal with numbers as ascii values, numeral strings are fine.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regular expressions Containing Octal values?
by mephit (Scribe) on May 17, 2002 at 20:16 UTC |