I have the following string of text.
LOCATION: -20.443 122.951
TEMPERATURE: 54.5C
CONFIDENCE: 50%
SATELLITE: aqua
OBS TIME: 2014-05-06T05:30:30Z
GRID: 1km
This is being pulled from a feed, and the fieldnames stay the same, but the values differ.
I have been trying to get my head around regular expressions and find a way to pull:
- 54.5 (temperature)
- 50 (confidence)
So I need two separate regular expressions that can pull the above from the original string. Any clues or pointers would be great.
I am doing this within a product that allows me to point to strings and can apply regular expressions to the strings so that values can be extracted and written to new fields.