Splitting The Value

Hi ,

Assume i have one value= " 1 Rishi"

I need to split and i want to get only “Rishi”

Thanks,
Rishi

1 Like

Hi @Rishik_Chowdary

Split(yourstring," ")(1)

if there is a space in start
use this
Split(name.Trim," ")(1)

image

thanks

@Rishik_Chowdary

Try-

" 1 Rishi".ToString.Trim.Split().Last

@Rishik_Chowdary You can try the below one. This way it always get the name (Rishi) irrespective of the position of the number (1 for now)

Variable of type string Output = System.Text.RegularExpressions.Regex.Replace(Input,"\d+", " ").Trim

Example.zip (2.6 KB)

please find the sample code
@Rishik_Chowdary

Sequence1.xaml (4.4 KB)

thanks

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