Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
There are many lines like this and the unique part is on the second line. In this case it is:<A HREF="JavaScript:AFunction('AA', 'B','0','Project','113')"> San Francisco (Manager)
Here is my attempt at it but having a problem fetching this number because I dont know how to handle the "San Francisco (Manager)" part which does not work in my attempt below:<A HREF="JavaScript:AFunction('AA', 'B','0','Project','113')"> San Francisco (Manager) <A HREF="JavaScript:AFunction('AA', 'B','0','Project','680')"> Los Angeles (Worker) <A HREF="JavaScript:AFunction('AA', 'B','0','Project','456')"> San Jose (People)
my ($number) =~ /'(\d{3})'\)">San Francisco (Manager)/; print "$number";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fetching unique info
by PrimeLord (Pilgrim) on Jun 05, 2003 at 16:15 UTC | |
by Anonymous Monk on Jun 05, 2003 at 17:34 UTC | |
by cbro (Pilgrim) on Jun 05, 2003 at 18:19 UTC | |
by Anonymous Monk on Jun 05, 2003 at 18:29 UTC | |
by cbro (Pilgrim) on Jun 05, 2003 at 18:34 UTC | |
|
Re: Fetching unique info
by hardburn (Abbot) on Jun 05, 2003 at 14:18 UTC | |
by Anonymous Monk on Jun 05, 2003 at 14:34 UTC | |
by cbro (Pilgrim) on Jun 05, 2003 at 14:50 UTC | |
|
Re: Fetching unique info
by jonnyfolk (Vicar) on Jun 05, 2003 at 15:19 UTC |