I am looking to find files/folders that contain at least 20 of the following characters:
[a-zA-z0-9_.-]
This is quite easy to do using most regular expression syntaxes, but I am not sure how this can be done using Dopus. I know that the "." character is often used to find multiple characters, but how about finding "x or more characters"?
I'm not quite certain exactly what you are attempting to find with this.
Could you post a few specific examples?
DOpus Regular Expression Syntax is smewhat limited as of today,
but Jon has indicated an upgrade is in the works for a future version.
Curly brackets of the form {n,m} do NOT work in the current version of DOpus.
It's not all bad though, one can still specify the match n + 1 times,
and then place a * after it to match 0 or more times for instance.
I'm only guessing, but as a start,
are you attempting to find files that contain 20 or more matches of any of a-z or A-Z or 0-9 ?
I don't know what you are doing with the '.' character.
Unless escaped with a '' character, the '.' character will match any character.
([a-z]|[A-Z]|[0-9])([^a-z]|[^A-Z]|[^0-9])* (twenty times) then .*
You only want to match those chars, right? No brackets, etc.? (If you just want to find any filenames longer than 20 characters and don't care what the characters are then that's really easy.)
Are there always three --- characters preceding the part of the filename you wish to keep?
Do any of these filenames contain a '[' character in the part of the filename you wish to keep?
Are any other characters ever used in the part of the filename you wish to keep?
@Nudel,
As you were posting your reply, I was wondering if it was a stealth Oxford Rhodes Scholar problem ! ( joke )
Do this in one line using only RegExp.
The '/' character is probably just a typo.
Hang in there brianafisher, we just might get it !
I'm thinking on it.
I wish! I am quite familiar with the regular expression syntax, so I often look for unique patterns that apply to all cases. However, the only pattern I found is the "n or more" characters. If the "---" was unique, a simple:
OLD NAME: (.*--- )(.*)
NEW NAME: \2
would have been done. I think this is a case where the "n or more matched symbols has to be met.
I can't think of a good way to do that using regular expressions.
Do the files tend to be tagged? (I know the one SHN live recording I got was missing tags so maybe not.) If they are then a better solution might be to move the files based on their tags, although I don't know if many music organising programs support SHN. (Could transcode to FLAC, then organise. Will save some space as well then. )
After doing some research, it appears that dopus does support ranges. I can use a vbscript for now, but will this be added in the future? I think it would be value-added and used by many.