Hi,
I’m attempting to split a list of strings. If a special character exists, remove the special character, if there is a space detected, split the string on the space detected & create a new item within the list. Output list should be distinct values, if possible?
For example:
lis-t should become {list} check ed should become two list items {‘check’,‘ed’}
With the changes, the final list should be {‘list’,'check, ‘ed’}
I’ve tried lwords.Distint.toList.Select(funciton (x) Regex.Replace(x,“^A-Za-z\S]+”,“”)).toList but the \S seems to be ignored it isn’t giving the required output