lundi 28 mars 2016

Match strings based on placeholder only C#/SQL [on hold]

Have two strings and want to compare and match based on only the placeholder texts. When I compare String 1 & String 2 result as true and String 1 & string 3 as false.

String 1 = {0} successfully {1}
String 2 = {1} Com êxito {0}
String 3 = {1} Com êxito {2}

RegEx, C# or SQL is preferred.

Aucun commentaire:

Enregistrer un commentaire