Splitting the words

How to split the single string from the one single line and it’s prasent both text and words

Ex= 8903 i am an RPA Developer
I just need only the Developer from it
I tried this regex =[A-Za-z\s]+ but selecting all string
How can i then…

HI @Pradeep_Kalyan

you can try this way

str_input = “8903 i am an RPA Developer”

str_input.Split({" "},StringSplitOptions.None).Last

image

1 Like

Hey use this regex
[A-Za-z]+$
image

1 Like

Hi,

How about the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"\w+$").Value

Regards,

1 Like

Based on your process

image

it will select all so you can try this expression it will work

str_input.Split({" "},StringSplitOptions.None).Last

@Pradeep_Kalyan

1 Like

I tried this one working for me and thanks for the quick rly

Hi @Pradeep_Kalyan

You can use the below regular expressions to extract the developer from the above data.

System.Text.RegularExpressions.Regex.Match(yourstringinput.ToString,“([A-Za-z]+$)”).Value

image

Hope it helps!!

1 Like

Thanks i tried this also working
@tazunnisa.badavide

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