[問題] Everything找出所有非\d{3}.\w{3,4}$

作者: vernc (cralvin)   2020-07-11 01:34:10
\d{3}.\w{3,4}$
想把不符合上面檔名的全抓出來,下面這些能pass
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\001.jpg
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\002.jpg
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\003.png
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\004.jpg
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\005.jpg
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\006.jpg
只想到
e\:\\artnonn\\.*\\([^\n\\]{4,}|[^\n\\]{0,2})\.\w{3,4}$
但如果像下面就抓不到
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\x01.jpg
E:\artnonn\【Electromagnetic Wave(POP)】Unlutin koakumapop\xxx.jpg
請問這要怎麼下?
thx
作者: dododavid006 (朔雪)   2020-07-11 16:03:00
如果你的程式能反向選取,我覺得用反向選取就行了
作者: art1 (人,原來不是人)   2020-07-15 02:13:00
(?!(\d{3}.\w{3,4}$)).+ 試看看行不行
作者: LPH66 (-6.2598534e+18f)   2020-07-16 14:04:00
剛才試了一下, (?! ) 在 Everything 有支援所以二樓的應該就可以了

Links booklink

Contact Us: admin [ a t ] ucptt.com