Test, validate and match regular expressions
Captures two consecutive sentences from text using named groups. The first sentence must end with terminal punctuation (. ? !), followed by whitespace, then the second sentence is captured up to a newline. With multiline and global flags, it's useful for extracting sentence pairs for text analysis, NLP preprocessing, or document restructuring.