German Umlaute again

Started by Winfried, December 18, 2014, 12:02:32 AM

Previous topic - Next topic

Winfried

I just encountered a problem with German Umlaute:
I extracted the green chanal of an image and saved it as <Filename>-grün
My normal versioning definiton failed.
Replacing grün by gruen and the problem is gone, but "ue" is a stone-age replacement (teletype-age) for "ü".  ;D
Finaly I added the Gernam Umlaute to the rule, which solved the problem:
^(_*{name})([+\-_]*[0-9|a-z|üöäß\[|\]])*\.(jpg|jpeg|psd|tif|tiff|bmp|png)$

Maybe this trick may work for other special characters in other lanquages as well.

Winfried

P.S.: Yes, it is always a bad idea to use these special characters in filenames, but it happens  ;)




[attachment deleted by admin]

joel23

Just a hint: adding "\x7f-\xff" should take care of lots of special characters, not only German umlauts.

In your case ^(_*{name})([+\-_]*[0-9|a-z\x7f-\xff\[|\]])*\.(jpg|jpeg|psd|tif|tiff|bmp|png)$ should do, but I haven't tested it. Not sure if it works when the red marked characters exists.

For the default reg expression in IMatch it would be: ^(_*{name})([+\-_]*[0-9|a-z\x7f-\xff]*)*\.(JPG)$
regards,
Joerg