I have these folders that have subfolders in them...
locales/US/en
locales/US/fr
locales/FR/en
locales/FR/fr
locales/DE/en
locales/DE/fr
public
test
[...]
I want Silver Searcher to ignore locales/*
EXCEPT for locales/US/en/*
(essentially I only care about US/en
locale files)
This works, EXCEPT that it doesn't show the other folders in root (public and test):
ag -l -G '(locales)/(US)'
I believe AG uses Perl Regexes. Any thoughts?
If it is perl regular expressions this should give you the expected result:
Explanation: