I am reading strings such as
1)hhh-130.01-this is a test-this is a test 2
2)hhh-130.1-this is a test
3)hhh-130. -this is a test-this is a test 5
I want only the number between the first "-" and the second "-"
I did something like this
string val = txtinput.Text.Substring(txtinput.Text..Text.IndexOf("-") + 1, txtinput.Text..Text.IndexOf("-"))
but the problem I get for number 1 130.0 and i should get 130.01
i can't do txtinput.Text..Text.IndexOf("-") + 1 for the second part because somtime I only need 130. like number 3
Thanks
130