Hi,
I have a string e.g. Aabcde.fghijkl and now i need string as Aabcde.fg, please how to achieve it. Need only 2 charector after decimal(.)
Hi @Rrupam13,
Is it a string or a decimal number ?
if it is string you can use this.
yourString = "Aabcde.fghijkl"
yourString = yourString.Substring(0,9)
Regards,
MY
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Match(yourString,"[^.]+\...").Value
Regards,
string_var.split(".“c).toarray(0).tostring+string_var.split(”."c).toarray(1).tostring.substring(0,2) try this please
Hello @Rrupam13
Try this, it may helps you
Sample=“ABCD.EFGHIJK”
Split(Sample,".")(0)+"."+(Split(Sample,".")(1))(0)+(Split(Sample,".")(1))(1)
Test.xaml (4.6 KB)
Regards
Gokul Jai
1 Like
Thanks Working fine however i have amended the expression then i got the desired value
str.Substring(0,str.LastIndexOf(‘.’)+3)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.