deryni has asked for the wisdom of the Perl Monks concerning the following question:
With all that in mind I would like to ask for help with this problem.
/^<(?:[Tt][Rr]).*?>(\d{5}).*?>(\d{2}).*?>(\d{3}).*?>(\d{3}).*?>(\d{2}).*?>(?:[&\w]).*?>(\w+(?:(?:[\s\w|&]+)?)*).*?>\s(\d).*?>(\w*?\d(?:[,\d\*]?)*)((?:[\w\d,]?)+).*?>(\w(?:(?:[\w\d-])?)*).*?<\/[tT][rR]>(<.*)?/ I am using that regex to pull the information out of an webpage, with the following line format (all newlines are mine to ease readbility).
<tr><td width="0" align="center"><font face="Arial" size="2">5 Digits +</font></td> <td width="0" align="center"><font face="Arial" size="2">2 Digits < +/font></td> <td width="0" align="center"><font face="Arial" size="2">3 Digits </ +font></td> <td width="0" align="center"><font face="Arial" size="2">3 Digits </ +font></td> <td width="0" align="center"><font face="Arial" size="2">2 Digits < +/font></td> <td width="0" align="center"><font face="Arial" size="2"> </font> +</td> <td align="center"><font face="Arial" size="2">AS tring</font></td> <td align="center"><font face="Arial" size="2"> 1 Digit always precede +d by a space </font></td> <td align="center"><font face="Arial" size="2">Letters, Digits, (comma +s|asterisks)?</font></td> <td align="center"><font face="Arial" size="2">A String always includi +ng a dash</font></td> <td align="center"><font face="Arial" size="2"> </font></td></tr>
|
|---|