Test, validate and match regular expressions
Matches the word 'the' with a case-flexible first letter, capturing both 'the' and 'The' (but not 'THE'). The character class [tT] accepts either lowercase or uppercase T, followed by the literal 'he'. The global flag finds all occurrences throughout the text, while the multiline flag treats each line independently. Useful for simple case-tolerant word searches, counting occurrences of 'the', or extracting sentences containing the word in documents or log parsing.