โ† Sabre questions
CodingEasy

Search string S2 in S1 with complete word matching flag

Filed under Sabre

The question

Given a sentence S1, a string S2, and a character variable C ('Y' or 'N'), determine if S2 is present in S1. If C is 'Y', S2 must be present as a complete word; if 'N', it just needs to be a substring.

No write-up yet. Related questions below have one.

Related Sabre questions

Collected from public candidate posts and coding forums. Updated Nov 2026.