Input: This is a test. Pattern: This {words:3} 3 captured tokens are in brackets WhitespaceSensitive = False [is a test]. WhitespaceSensitive = True [ is ]a test.