Hi @Mansi_Mhatre,
you can achieve this by doing some nested iterations and a RegEx pattern.
I have done this generic workflow that works for all the examples that you posted. Let me know if it is what you are looking for.
CheckStringOcurrences.7z (31.2 KB)