I'm a total newbie with the RegEx language, so I need some help. I haven't been able to figure out how to do what I want via the help file, so I ask the experts.
Problem: I have a list of numbered files, but there are no padding zeroes before the lower numbers, so the list looks like this:
file1
file10
file11
file2
and so on.
What I would like to do (and I hope this is possible) is to use RegEx in the selection dialog to just select the files with only one digit at the end. How would I do this?
Help!!!
Want help with RegEx
Moderators: Hacker, petermad, Stefan2, white
Here you go Gingo:
Code: Select all
file\d{1}\b
If all files were named "file" that would work, but they're not. They have different names, so to avoid having to type the name (which sometimes is quite long) I want a universal method.petergus wrote:And about your problem, Gingo.
You don't need to use RegEx.
Just search for "file?"
// Peter
Petergus: I will try the SortUpper function. I did remember hearing that it would be possible to do so in v6, but I couldn't find anything in the help or the configuration.
Thanks! With a little change toJojo wrote:Here you go Gingo:
Code: Select all
file\d{1}\b
Code: Select all
[a-z]\d{1}\b