Nice problem.
Rich’s patterns works for me - if I put some parentheses around the whole
pattern:
(^.*?\n){XXX}
I guess, without the pattern the quantifier only checks for the „\n“ and
you are in fact searching for a line of text followed by XXX line breaks
(aka empty lines).
-Roland
On Tue, Dec 11, 2018 at 4:45 PM Rich Siegel <[email protected]> wrote:
> On 12/10/18 at 7:26 AM, [email protected] (Philippe
> Carly) wrote:
>
> >More specifically, I have a directory which contains a large
> >number of subdirectories, each containing (among other things)
> >a fileinfo.php file.
> >I now that this fileinfo.php should have N lines. And I am
> >trying to locate files that have more or less than N lines to
> >search for potential problems.
>
> If I am understand your description correctly, something like
> this should work:
>
> - search for:
>
> ^.*?\n{XXX} -- replace the "XXX" with the desired number of lines
>
> - turn on "Exclude Matches"
>
> - run your multi-file search.
>
> This will return all files that don't have XXX lines in them.
>
> You can add a file filter to only search "fileinfo.php" files to
> further narrow things down.
>
> R.
> --
> Rich Siegel Bare Bones Software, Inc.
> <[email protected]> <http://www.barebones.com/>
>
> Someday I'll look back on all this and laugh... until they
> sedate me.
>
> --
> This is the BBEdit Talk public discussion group. If you have a
> feature request or need technical support, please email
> "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/bbedit.
>
--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.