String mani

i have a string as “Recording” and i need to have only first 3 and last 3 items in the string and all those are in middle needs to be deleted or eliminated . how to i do that ?

Hi @poojaskyrathore

Try thisin assign activity:
out_var = System.Text.RegularExpressions.Regex.Replace(inputString, “^(.{3}).*(.{3})$”, “$1$2”)

Hi @poojaskyrathore

Use the below condition:

input.Substring(0,3)+input.Substring(input.Length - 3)

Hope it helps!!

1 Like


If you find solution for your query please mark it as solution to close the loop.

Happy Automation :slight_smile:

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