Test, validate and match regular expressions
Matches a complete sentence ending in '.', '!', or '?' while ignoring periods that belong to abbreviations (e.g., z.b., Fig./Figs.) or decimal numbers (e.g., 3.5). It uses a conditional with a lookahead to consume those special sequences as part of the sentence instead of treating them as terminators. Ideal for sentence splitting and text extraction in NLP pipelines.