Get the wind in knots out of this input string. REGEX please Help

image

Airport EGKB - BQH - BIGGIN HILL RWY 03 21
METAR 291020Z 23011KT 200V260 9999 FEW015 SCT020 07/05 Q1002 =
TAF 290800Z 2909/2918 24012KT 9999 SCT025 PROB40 TEMPO 2909/2916 25016G28KT PROB30 TEMPO 2909/2918 7000 SHRA PROB30 TEMPO 2909/2911 BKN014=

I want these two values which is the wind speed. Its always followed by KT
Please assist.

these values will have always 2 digits?

1 Like

Yes
when lower than 10
is 07 for instance

Great
Use ‘Matches’ activity with pattern:

"\d{2}(?=KT)"
1 Like

Fantastic. Thanks a lot sir

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.