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
Searching file names with uppercase letters
Moderators: Hacker, petermad, Stefan2, white
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
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