When reading lines of html text from a file, I'm trying to match the
following, I'm trying to match on a string of 6 numbers, delimited by
hyphens. e.g. 2-19-23-27-29-40
The following code fails to match, and so do may different variants.
if($inline !~ /((\d?\-){5}(\d?))/ ){
exit(-1);
}
The actual value of $inline is as follows:
<TD><B><FONTSIZE="1"><FONTFACE="Verdana,Helvetica, sans-serif">2-19-23-27-29-40</B></TD>
Any help would be appreciated.