SyntaxFix
Write A Post
Hire A Developer
Questions
((\n.*){0,3})(.*)\W*\.txt
This will select all the content before the particular word ".txt" including any context in different lines up to 3 lines