here my current code
Code: Select all
regexp {Temperatur:</span></td>\r\n\t*<td><span class="Body">(.{1,5}) °C} $state(body) {} temp
regexp {Luftdruck:</span></td>\r\n\t*<td><span class="Body">(.{4,6}) hPa} $state(body) {} druck
regexp {Wind:</span></td>\r\n\t*<td><span class="Body">(.{1,3}) km/h / (.{3,12})</span>} $state(body) {} windg windr
Code: Select all
<tr>
<td width="100"><span class="Headline">Temperatur:</span></td>
<td><span class="Body">-0.7 °C</span></td>
</tr>
<tr>
<td><span class="Headline">Luftdruck:</span></td>
<td><span class="Body">1015.8 hPa</span></td>
</tr>
<tr>
<td><span class="Headline">Wind:</span></td>
<td><span class="Body">26 km/h / West</span></td>
</tr>
[03:48:03] * Last context: tclhash.c/684 [Tcl proc: getwetter_cmd, param: $_pub1 $_pub2 $_pub3 $_pub4 $_pub5]
[03:48:03] * Please REPORT this BUG!
[03:48:03] * Check doc/BUG-REPORT on how to do so.
[03:48:03] * Wrote DEBUG
[03:48:03] * SEGMENT VIOLATION -- CRASHING!

any idea to get the 4 values? I could leave out the code before the new line in the 1st and 2nd, but never in the 3rd line. Do I have to use something else for newlines in the expression or is "\t*" not refering to an unspecific amount of tabs?.
PS: $state(body) contains the correct html code (between <body> and </body>), I get 2 other values correct.
PPS: if you believe having the whole code will make you able to help me, I can send the code via PM/email. Since it has 155 lines and is German only commented, it might not help much anyway and I'd just risk someone takes my code without credit

PPPS: ah yeah, just remembered... using another weather script won't help. Their source page all suck when it comes to German weather, I want to use www.wetter.com. In case you have seen another script for this page, I'd be happy, too. I could only find a remote script, but I it doesnt look, like I could anything from there

