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 ?
Try thisin assign activity:
out_var = System.Text.RegularExpressions.Regex.Replace(inputString, “^(.{3}).*(.{3})$”, “$1$2”)
Use the below condition:
input.Substring(0,3)+input.Substring(input.Length - 3)
Hope it helps!!
Regards,
1 Like
If you find solution for your query please mark it as solution to close the loop.
Happy Automation
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.