Hi,
TextVal=“Service Request is closed. RAMSAY HEALTH CARE AUSTRALIA PTY LTD will be billed AUD 25.(SBL-BPR-00131)”
I want to extract value after “AUD” before “.(”
output value should be “25”
Please Suggest me if you have any solution
Thanks
likitha
hafiz.ahsan
(Hafiz Mohammad Ahsan)
2
You can use the Substring() Method to get the value of your expected text
Sanjit_Pal
(Sanjit Pal)
4
Hey @vinjam_likitha,
You can use regularexpressions to get that value.
System.Text.RegularExpressions.Regex.Match(TextVal,"AUD\s+\d+")
Thanks,
Sanjit
Yoichi
(Yoichi)
6
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Match(TextVal,"(?<=AUD\s*)\d+(?=\.\()").Value
]
Regards,
Hello @vinjam_likitha ,
System.Text.RegularExpressions.Regex.Match(TextVal,“(?<=AUD)\s+\d+”)
Regards,
Rohith
Hello @vinjam_likitha
Try Regex method
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=AUD).*(?=\()").ToString.Trim
If need as integer variable try this
Cint(System.Text.RegularExpressions.Regex.Match(YourString,"(?<=AUD).*(?=\()").ToString.Trim)

Hi All,
Thank you for the solutions
Thanks
Likitha
system
(system)
Closed
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.