Generation

generate functionSun, 15 Jan 2023

Delete rows from the list var lists = project.Lists["Listzapros"] satisfying the regular expression - google|css|js|asp|gif|jpg|png|pdf|mp4|mp3|zip|exe|dll|ics|xml|xls

lists.Items.DeleteListItems(lists.Items.Cast<SPListItem>().Where(x => x["Name"].ToString().Contains(@"^[0-9A-Za-zА-Яа-яЁё]+$")).Select(x => x.ID));

Want to kickstart your project?Use the new AI Studio to create your code