SyntaxFix
Write A Post
Hire A Developer
Questions
This matches everything up to ".txt" (without including it):
^.*(?=(\.txt))