#1 2010-10-26 15:22

drMerry
Member
Registered: 2010-10-20
Posts: 4

Regex upper/lower case using \u \U \E \l \L \E

Hi,

I wanted to make some changes to my directories.
If I try to change my directory this way:

(Selected folder = ..\myDir)

regex: (.)(.*)
replace: \u$1\\$1$2

result: ..\um\myDir

I expected
..\M\myDir

also using \U$1\E\\$1$2 did not work

Is this function not implemented?
Is there a way to use renamer with uper/lower case functions in regex?
(I know there is an option to upper/lower case my folders, but I have a structure that does not let renamer case my files correctly, I need a regex. It is also no option to rename the folder to start with uppercase, it must stay in the case it is)

Offline

#2 2010-10-27 15:03

drMerry
Member
Registered: 2010-10-20
Posts: 4

Re: Regex upper/lower case using \u \U \E \l \L \E

And another one about regex, is also problematic.
when a folder has a dot in it's name and skip extensions is turned on, renamer thinks the folder has an extension.

On files this is usefull, not on folders (or is it?)

Offline

#3 2010-10-28 07:00

ozzii
Senior Member
Registered: 2007-07-04
Posts: 101

Re: Regex upper/lower case using \u \U \E \l \L \E

On folder you must use "skip extension".
I have to use this for the same reason.


_________________
Do, or do not. There is no 'try.'" --  Jedi Master Yoda

Offline

#4 2010-10-31 13:49

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,380

Re: Regex upper/lower case using \u \U \E \l \L \E

It is a known limitation of the current RegEx engine: "\u \U \l \L" are not supported. Here is a topic which also talks about this limitation and describes an alternative solution using PascalScript: ReNamer: RegEx missing features.

Offline

#5 2010-10-31 17:40

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Regex upper/lower case using \u \U \E \l \L \E

Here are examples of PascalScripts which use RegEx to split the string into parts
and then use script commands to change the case:

ReNamer: first part with Title, second part uppercase, third as it is


HTH

.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

Board footer

Powered by FluxBB