I was trying to use "Find In Files" combined with Perl Regex to extract the first N lines from a group of files, and have the results in an output window.
I can use wildcards to grab a group of arbitrary lines just fine, but if I grab, for instance, 7 lines, and there are 70 lines in the file, I'll get 10 items found. But I only want to see the first one.
Is there any way to anchor a regex at the top of the file?
Or tell the routine to stop after the first expression is found in each file?
Or any other way to do this in UE?
I can use wildcards to grab a group of arbitrary lines just fine, but if I grab, for instance, 7 lines, and there are 70 lines in the file, I'll get 10 items found. But I only want to see the first one.
Is there any way to anchor a regex at the top of the file?
Or tell the routine to stop after the first expression is found in each file?
Or any other way to do this in UE?