Need RegEx help please

Hi

There is a knowledge base in UiPath forum on all functionalities of datatable
Have a view on this for more insights

For your scenario

This is with normal IsNullOrEmpty method

dt1 = dt1.AsEnumerable().Where(Function(a) NOT String.IsNullOrEmpty(a(“Email”).ToString.Trim) ).CopyToDatatable()

If you want to remove with the Regex

dt1 = dt1.AsEnumerable().Where(Function(a) NOT System.Text.RegularExpressions.Regex.IsMatch(a(“Email”).ToString.Trim, “[\W|\w]").CopyToDatatable()

Hope this helps

Cheers @chrystine.h

2 Likes