简体   繁体   中英

Regular Expression For A Number of UpperCase Characters

there is a windows program that supports Regular Expression (or Dos Expression) for search files.

(MythicSoft's FileLocator Pro)

it supports wildcards such as * ?
i want to find only 4 characters file names with jpg format
how can i write a phrase for that?
this phrase (????.jpg) finds all lower and upper cases.(i put it's mode to dos expression)
also this phrase ([AZ][AZ][AZ][AZ].jpg) Does not work!(i put it's mode to regular expression)

thanks in advance

Online documentation shows that FileLocator Pro uses Perl compatible regular expressions, in which case, this should work:

^([A-Z]{4}\.jpg)$

The parentheses make the whole thing a capture group. If you don't need the capture group, just remove the parentheses.

Edit:

Make sure that the case sensitive option is on for regular expressions. Go to the online documentation and search for regular expression case sensitive . It appears to be explained there. It says 'To make the content search case sensitive click the 'Aa' buttons'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM