Confused in String

I have text file i want to extract only output value in my excel.Example:
Model=HM312 Engine=HM1231000001 - HM141999999
output value dynamic not fix.How to solve.

TEXT.txt (196 Bytes)

assign
model= System.Text.RegularExpressions.Regex.Match(txt, "Model[\s]+([\dA-Z]+)-").Groups(1).Value

and assign
engine = System.Text.RegularExpressions.Regex.Match(txt, "Engine[\s]+([\dA-Z]+ - [\dA-Z]+)").Groups(1).Value

image

refer to this
Sequence1.xaml (7.1 KB)

Can you help me to string
Stroke =(2-stroke or 4-stroke)4 stroke
Power=2

stroke
(?s)Stroke (.*?)\-output

power
Power[\s]+([\d]+)

power,model,stroke not working fine in my system

whats the input file you are using?

i have string in webpage

can you copy that string and paste it here

again.txt (258 Bytes)

i see that power is still working

Model[\s]+([\da-zA-Z]+)

Engine[\s]+([\dA-Za-z]+ - [\dA-Za-z]+)

Stroke (.*?).output

what .output excatly means

its to match a string before “=output”

. means (any character)

Thanks for supporting me.Right now everything working fine.But one issue in stroke.Value comes blank.

System.Text.RegularExpressions.Regex.Match(textInformation, “Stroke(.*?).output”).Groups(1).Value

this

(?s)Stroke(.*?).output

not working stroke

whats input?

Value Blank