I do have a text and need to find text and extract text after value in text file.
Need to find the word “FILTRATION AREA” if its found need to extract its value “0.12 m”(i need to extract the value till “m” every time) and text look like
they are in different formats like,
“FILTRATION AREA: 0.12 m or “FILTRATION AREA: 0.072m" | Tm | om Se or
“FILTRATION AREA: 0. 1! 37m’ | ph 5 > "a 5 or “FILTRATION AREA: 0. 055m’ S| =i or “FILTRATION AREA: 0. 072m | Sel or “FILTRATION AREA: 0. 1! 37m’ | ph 5
Result should be like below:
0.12 m or 0.072m or 0. 1! 37m or 0. 055m or 0. 072m or 0. 1! 37m
If
str_Input.Contains("FILTRATION AREA")
Then
Assign -> Value = System.Text.RegularExpressions.Regex.Match(str_Input,"(?<=FILTRATION AREA\:\s*)\d[\s\S]*?m").Value.Trim()
Message Box -> Value
End If