Hi Guys,
How do I extract name of the client from below string :
100%-with same back account details: ABC Company Limited:Corporate Tax
Regards,
Revati
Hi Guys,
How do I extract name of the client from below string :
100%-with same back account details: ABC Company Limited:Corporate Tax
Regards,
Revati
If variable Var contains the above text:
System.Text.RegularExpressions.Regex.Match(Var, ": .*:").Value.Replace(":", String.Empty).Trim
If the string is constant then you can use Regex
(?<=:)(.*)(?=:)
It will extract what ever in between the :
Hope this helps
Thanks
This worked ! Thanks so much!
Where can I get to learn String Manipulation commands like these ? I always get stuck at this part…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.