Test, validate and match regular expressions
This regex is designed to extract a title or the first sentence of text that immediately follows a four-digit year in parentheses, such as in a citation like '(2023) Movie Title.'. It uses a positive lookbehind to verify the year format and then captures all characters up to the first period or question mark. It is particularly useful for parsing bibliographies, film databases, or academic logs.