Regex.Replace on String Array

@william.coulson
working with for each is recommandable, as the implementation can be very well inspected and tracked.

Still you will have an option for following oneliner, used within an assign without for each:
OutputArray.Select(Function (s) System.Text.RegularExpressions.Regex.Replace(s,“\r|\a|\t|\n”,“”).toArray (or toList if you prefer)
ther return will be a string array

about the search pattern maybe with \s|\a it can be shortened

1 Like