Test, validate and match regular expressions
This regular expression matches the very last question mark (`?`) on a line before a newline or the end of the string. It uses a negative lookahead to ensure there are no further question marks ahead. Despite its seemingly complex alternating lookbehinds, it simply targets the final question mark in the text.