Hi, i'm using TC 6.02. I need to do a file search, where exactly 4 digits forming a number from 0001 to 9999 is a part of the filename.
So the filenames is as follows:
somecharacters.####.iam
For the "somecharacters" part, this can be a name with letters and or digits, then "dot" followed by the 4 digits (for version number) folowed by the extension ".iam"
The files er oldversion files generated from our CAD system, they are like a huge amount of bak-files which I wan't to delete periodically.
I looked into RegExp, but didn't find the appropriate syntax
regards Lars
RegExp search
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 62
- Joined: 2003-04-11, 07:46 UTC
- Location: Denmark
RegExp search
Best regards
Lars
Lars
Try this with regex:on
it means
any char at least one time
just a dot - the '\' makes the dot mean a dot and not any char
a digit
the last char 4 times (so 4 digits)
just another dot followed by iam
sheepdog
Code: Select all
.+\.\d{4}\.iam
Code: Select all
.+
Code: Select all
\.
Code: Select all
\d
Code: Select all
{4}
Code: Select all
\.iam
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams