I have a series of cell array
XXXX-20-0266-3.datXXXX-10-01-12_03.03.03 AM.datXXXX-10-01-12_01.03.03 PM.datXXXX-30-0333.dat
I want to match with AM or PM, I try to use regexp function, regexp(cell{2}, [xxxx '-?\w*AM.csv'], it does not work. how I can achieve it since the middle always change its length and content? Please help me. I appreciate for your time and efforts.
Best Answer