Split the text based on "," using Csharp

input : 15463, Manjunath
Output : Manjunatha

Is this In C#?

YourStringVar.Split(',')[1].Trim()

When importing System.Linq to the namespaces
YourStringVar.Split(',').Last().Trim()

Hi,

How about the following?

System.Text.RegularExpressions.Regex.Match(yourString,@"\w+(?=\s*$)").Value

Regards

,

Hi @Pujari_Manjunatha
word=“15463, Manjunath”

word.Split(“,”,StringSplitOptions.None)[1].Trim()

Use it like this in an assign activity adn you’ll be able to get it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.