For example, assuming files
- AAA
- AAAA
- AAAAA
Hope this explains this sufficiently.
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
?^a...\.
Code: Select all
? - turns regular expression mode on
^ - matches the beginning of the file
a - matches the char "a"
. - matches any char
\. - matches a dot
My solution isn't perfect either. But both solutions should fit most of the cases. Perhaps this one is perfect:white wrote:Not quite. Try:cavaliersa wrote:This now works just fine.
- a.js
a.is.not.b.pdf
aint.good.pdf
Code: Select all
?^a...\.[^\.]*$