FACTURE 147-2016 OCP CAMERAS
FACTURE 148-2016 OCP 20 DETECTEURS
FACTURE 150-2016 VIVOENERGY ALTAIR 5X
FACTURE 158-2017 VIVO ENERGY MOHAMMEDIA
I want to compare with the names in the list and the names in an excel file.
the excel file just contiet form
i try to use ( string.Split , string.contains ) but Sometimes there is space between invoice and code and sometimes not.
how cant i compare just with the code and year FACTURE 147-2016

Rafnas T PRank #280 · 8.8K reputationPosted Jul 6, 2017, 1:49 AM EDT
Mohamed Moumni44 reputationPosted Jul 6, 2017, 11:44 AM EDT
{
string a= n.TrimStart(new char[] {' '});
string b = a.TrimStart(new char[] { 'F', 'A', 'C', 'T', 'U', 'R', 'E'});
string D= b.TrimEnd(new char[] {' '});
ls_num_Fact.Add(D);
}