I like to color folders with names beginning with one underline (_folder).
Using wildcard "(_)" colors all folders including an underlin like "fol_der" or more at the beginning like "____folder".
Sorry, I'll never learn scripting
I like to color folders with names beginning with one underline (_folder).
Using wildcard "(_)" colors all folders including an underlin like "fol_der" or more at the beginning like "____folder".
Sorry, I'll never learn scripting
I think you miss the fact "" means any characterS. So "" simply matches any string. So your pattern "(_)" is quite messy as you abused "". If you want your pattern to match only names "" this "" shall suffice
PS: You are not even close to scripting
Hm, not really. I missed "one" in "with one underline". I think you need regular expressions for this as you need more complex patter to exclude _ on 2nd position, which * does not do. Out of head: ^[^].*$ for normal regexps shall do (note this one sucks as it assumes name got at least two characters, so you definitely can come with better pattern). But for some reason it does not work for "File and Folder labels". Not sure why yet
Thanks. So you are even just a bit closer to "scripting" than me
It's okay if two or more underlines will also be colored. BTW I tried "_*" before, but didn't work and that was the reason why asking for help.
This should work:
I'd be surprised if it would work, as it makes not much sense in terms of syntax of regexps. Usually \ means you want to use \ char literally but since \ is special character (escape char) you need to escape it to get the literal. As for know I am starting to believe DOpus regexps are simply broken as even simple patters does not work with it.
[quote="Borszczuk"]
I'd be surprised if it would work, as it makes not much sense in terms of syntax of regexps. Usually \ means you want to use \ char literally but since \ is special character (escape char) you need to escape it to get the literal. As for know I am starting to believe DOpus regexps are simply broken as even simple patters does not work with it.[/quote]
DOpus Folder Colors utilize the full path for the regexp. And you probably wont want to mark every sub folder if the parent folder starts with "_". That's why you have to use the "".
I do not have that much experience with all the different regexp engines, but I would say this regexp is pretty much standard.
And maybe you want to check for yourself, before you say it won't work
And maybe you want to check for yourself, before you say it won't work [/quote]
I did and it does not work correctly - by correctly I meant it shall hightlig foo but not __bar. It matches both but not sure why. Also second \ is pointless too. I was unaware it matches whole path, thanks for pointing that out (didn't checked with manual yet - I expected just the folder/file name, hence my comment, so if mathing anything starting with underscore (one or more) fits OP's needs then ".*\.*" looks like the simpliest regexp pattern.
Damn, forget it. ".\[^\]$" works of course. Need a sleep. and correct testing
be careful, regexp before bed time brings nightmares
Thanks guys. Now I can sleep well knowing why wildcard/regexp confuses me