Hello!
I have this:
Lalalala (alwaus this word)
12345.43 (always different, also: 453.12, 241241.24)
kflf;f;sdkfeeo
e34234
sfef
I need take: 12345.43
How I can do it?
Hello!
I have this:
Lalalala (alwaus this word)
12345.43 (always different, also: 453.12, 241241.24)
kflf;f;sdkfeeo
e34234
sfef
I need take: 12345.43
How I can do it?
Hi, you can try this ‘\d+.\d{2}’ without the single quotation
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Lalalala[\r\n]+).*").Value
Regards,
It is take all row
It is not work for
Lalalala
34,231.31
fefwef
and for:
123.23
Hi,
Are parentheses data, not annotations? If so, the following will work.
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Lalalala[\r\n]+)[.,\d]+").Value
Regards,
What if I have:
Lalala
1.
Lalalala
12.31
And I need 12.31. Now I have 1.
Hi,
Can you try the following?
System.Text.RegularExpressions.Regex.Matches(yourString,"(?<=Lalalala[\r\n]+)[.,\d]+").Cast(of Match).Last().Value
Regards
Cast is not member of System.Text.RegularExpressions
hi,
Can you share your whole error message?
Do you use “System.Text.RegularExpressions.Regex.Matches” method?
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.