hi guys,
just starting to use perl a bit and i need a bit of help with regular expressions.
i have these lines i need to parse:
and the regular expression i am using is:
this works fine on the second bit "Multimedia Systems", but fails on the first bit as there are more than one <br> within the text.
the output i require is:
distributed systems
(3-7)
219
distributed systems
(2-10)
311
multimedia systems
(2-10)
311
can someone please give me a few pointers.
thanks
daven
just starting to use perl a bit and i need a bit of help with regular expressions.
i have these lines i need to parse:
Code:
<td bordercolor="#000000">
<font color="#000000" face="Arial" size="1">Distributed Systems<br>LAB (3-7) / slk (3-7),vlt (3-7) / 219<br><br>Distributed Systems<br>TUT (2-10) / slk (2-10),vlt (2-10) / 311</font>
</td>
<td bordercolor="#000000">
<font color="#000000" face="Arial" size="1">Multimedia Systems<br>TUT (2-10) / ih (2-10) / 311</font>
</td>
and the regular expression i am using is:
Code:
$lines[$index] =~ />(.+)<br>\S\S\S\s\((.+)\) \/ .* \((.+)\) \/ (.+)</
this works fine on the second bit "Multimedia Systems", but fails on the first bit as there are more than one <br> within the text.
the output i require is:
distributed systems
(3-7)
219
distributed systems
(2-10)
311
multimedia systems
(2-10)
311
can someone please give me a few pointers.
thanks
daven