Regex on file name

I’m having a list of filename and I want to filter them using a regex. I want every file that have the extension .db.ts but does not start with a capital A. Here are different situations as example : Good /home/foo/file.db.ts /home/anyway.db.ts /home/AExample/anyway.db.ts example.db.ts Bad /home/foo/Afile.db.ts /home/Aanyway.db.ts Aexample.db.ts example.ts Here is what I’ve tried :…

Details