Each line is an independent match decision
Line filtering resets RegExp.lastIndex before each line. That prevents a global pattern's state from leaking between lines while preserving sticky matching at line offset zero when y is selected.
CRLF, CR, LF, line separator, and paragraph separator are recognized as input boundaries. Returned lines use LF consistently, and a hard 20,000-line guard runs before user matching begins.