How do I extract Client Name in the below String?

Hi Guys,

How do I extract name of the client from below string :

100%-with same back account details: ABC Company Limited:Corporate Tax


If variable Var contains the above text:
System.Text.RegularExpressions.Regex.Match(Var, ": .*:").Value.Replace(":", String.Empty).Trim

1 Like


If the string is constant then you can use Regex


It will extract what ever in between the :

Hope this helps


1 Like

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.