I'm trying to get the computer to tell me the weather and wunderground returns a nice text string that I'm trying to use. But I'm not interested in the wind conditions so I'm trying to trim that bit off but I can't figure out how to get Results.RegEx to match properly.
To test it I wrote this macro that sets last result, try to match the wind part and then replace it with a space character:
Results.SetLastResult Overcast in the morning, then mostly cloudy. Winds from the South at 15 to 20 km/h.
Results.RegEx (Wind.*)
Results.Replace {match.1} && " "
OSD.ShowText {lastresult}
Wanted result: "Overcast in the morning, then mostly cloudy. "
Seen result: "Overcast in the morning, then mostly cloudy. Winds from the South at 15 to 20 km/h."
It doesn't work and I can't figure out why. Tried lots of expressions but nothing seems to match.