RegexExpression for below string

HI my string is like
3508 S LaFountain St Kokomo, IN 46902

so i need a output like before the comma(“,”)
ie; output = kokomo

I need only one word before the comma

can i get the solution for this

Hi @katta_nikhil

inputString.Split(","c)(0).Trim().Split(" "c).Last() 

Regards,

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