I use the MSN weatherservice. Now I have the following problem with string.match
. All variables are filled except sWindRichtung
. It equals nil
.
sHumidity, rest = string.match(rest,"humidity=\"([^\"]+)\"(.*)");
sWind, rest = string.match(rest,"windspeed=\"([^\"]+)\"(.*)");
sWindRichtung, rest = string.match(rest,"winddisplay=\"([^\"]+)\"(.*)");
The string to filter is: humidity="77" winddisplay="11 km/uur N" windspeed="11"
I think that the character /
is the problem.