[问题] Everything用regexp找档名?

楼主: vernc (cralvin)   2020-07-11 01:44:13
\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\y1x.jpg
请问这要怎处理?
thx
作者: sicao (adios)   2020-07-11 09:01:00
E\:\\artnonn\\.*\\(?!\d{3}\.\w{3,4}$) ??
作者: hsparrot (飞高高)   2020-07-11 12:30:00
!
作者: sicao (adios)   2020-07-13 22:30:00
(E\:\\artnonn\\.*\\(?!\d{3}\.\w{3,4}$)).{3}\.\w{3,4}$(E\:\\artnonn\\.*\\(?!\d{3}\.\w{3,4}$)).{1,}\.\w{3,4}$3F是档名必定是三码 4F是档名可以是一到N码

Links booklink

Contact Us: admin [ a t ] ucptt.com