Test, validate and match regular expressions
Matches two consecutive sentences on the same line, capturing text ending with a period, question mark, or exclamation point as 'first_sentence' and the following text as 'second_sentence'. The sentences must be separated by whitespace, and the match ends at a newline. With the global and multiline flags, it can process each line of a document, making it useful for sentence splitting and text analysis tasks.