Hi i want only engine value only text.How can i achieve.
My Regex:-
System.Text.RegularExpressions.Regex.Match(output, “Engine[\s]+([\dA-Z]+ - [\dA-Z]+)”).Groups(1).Value
Output=Blank
file.txt (145 Bytes)
Hi i want only engine value only text.How can i achieve.
My Regex:-
System.Text.RegularExpressions.Regex.Match(output, “Engine[\s]+([\dA-Z]+ - [\dA-Z]+)”).Groups(1).Value
Output=Blank
file.txt (145 Bytes)
Output=Value in text file
If the Engine value is supposed to be only numbers, then do Check with the Below Regex :
(?<=Engine:).*?(\d+)
If they are not just numbers, you might need to provide some more samples to make the regex accurate.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.