How to remove duplicates from IEenumrable <system.text.RegularExpressions.match>
i want to remove the duplicates from the output of a regex expression.
pls suggest
How to remove duplicates from IEenumrable <system.text.RegularExpressions.match>
i want to remove the duplicates from the output of a regex expression.
pls suggest
Hi @Akhil_Raveendran - Please check this…
StrArray = YourRegexVar.Select(Function (x) x.tostring).distinct().toarray
which Variable type need to use ?
I corrected my statement by deletion. @prasath17 has given correct statement
IEenumrable <system.text.RegularExpressions.match> returned from Matches Activity as above
can use LINQ Select operator directly
MatchCollection returned by Regex.Matches requires the cast before using LINQ Select Operator
The Check 2 as described here:
StrArray = YourRegexVar.Select(Function (x) x.tostring).distinct().toarray
StrArray is String Array = String() as mentioned by Guru
Cannot assign from the type of “system.string ” to type “system.text.RegularExpressions.match” in assign activity
@Akhil_Raveendran - Were you able to resolve it?
i will update you today
yeah its resolved .Thank you
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.