PanchoAguirre has asked for the wisdom of the Perl Monks concerning the following question:
When I removed the colon it matches the words Catalog Numbers in a incorrect location.<font size="-2" face=verdana> <b>Catalog Number:</b> PAL1001 <br> <&c> I have tried the following code unsuccessfully: I have tried the following code <c> $results=~ /(Catalog Number:)/; if($1) {print "$1\n";} else {print "nothing\n";};
Thanks in advance for the help. Sincerely, Pancho$results=~ /(Catalog Number)/; if($1) {print "$1\n";} else {print "nothing\n";};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing hmtl file with regex
by davido (Cardinal) on Sep 30, 2011 at 23:15 UTC | |
|
Re: parsing hmtl file with regex
by ww (Archbishop) on Oct 01, 2011 at 01:00 UTC | |
|
Re: parsing hmtl file with regex
by planetscape (Chancellor) on Oct 01, 2011 at 16:11 UTC | |
|
Re: parsing hmtl file with regex
by JavaFan (Canon) on Sep 30, 2011 at 23:10 UTC | |
|
Re: parsing hmtl file with regex
by Marshall (Canon) on Oct 01, 2011 at 07:10 UTC |