Say I have the below data
string data1 = "2014SP";
string data2 = "2014DP";
string data3 = "2014AP-S1"
Is there a way I can tell while comparing the strings that they follow a pattern which is say NumberWordSpecialCharacter etc. So in this case data1 and data2 have the same pattern and data3 is different.
I can do it using Regex if I have defined patterns, but I don't. I have a list of data which needs to be compared while incrementing with patterns which are not defined so maybe one comparison set is 213S-P12 and 2014S and the Second is S-P2015 and SP123.