How to match strings with additional part but not match them if they both have different additional parts using python

Eklenme Tarih 1 hour ago
Active 19
Görüntülenme 89
S

How to match strings with additional part but not match them if they both have different additional parts using python