Get text after third space

I have string like
Add 124 0114 John Aman Kumar
I want only name output as ‘John Aman Kumar’

@Anil_Potekar
String.Join(" “,Split(input,” ").Skip(3))

2 Likes

Hi @Anil_Potekar

If your string will be exactly like this you can try with this expression

System.Text.RegularExpressions.Regex.Match("InputString","(?<=\d\s)\D+").Tostring

image

Regards
Sudharsan

Hi @Anil_Potekar

Can you share the more sample strings?

Regards

@Anil_Potekar
Check the double quotations in your code

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