Searching file names with uppercase letters

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
klein
Junior Member
Junior Member
Posts: 2
Joined: 2012-05-23, 17:47 UTC

Searching file names with uppercase letters

Post by *klein »

Hello, I need to find from thosands of image files 2 types of image file names:

ABC abac 123 - 3 capital letters in beginning and 3 digits in the end;
ABC abc 123_1 - 3 capital letters in beginning and 3 digits + underscore + 1 digit in the end.

Can anyone please advise me how to do it with RegEx
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Hi, try '(?-i)^[A-Z]{3}.*\d{3}(_\d)?$' without the outer quotes (use this regex only on file's name not fullname).
BTW, TC's help file provides reasonably simple explanations and examples of how to use its RegEx.

edit: For a little more info, see a similar thread: http://www.ghisler.ch/board/viewtopic.php?t=34518
Windows 10 Pro x64, Windows 11 Pro x64
klein
Junior Member
Junior Member
Posts: 2
Joined: 2012-05-23, 17:47 UTC

Post by *klein »

Ok I got it now. It worked just as needed. Thank you for help.
Post Reply