RL Vision Knowledge Base
Support questions and answers for software by RL Vision.
Note: This is an archived discussion. Any bug, problem or suggestion mentioned here is likely to have been fixed since it was written.
Subject: Re: Bug in RegEx-Handling
Date: Mon, 13 Oct 2008 20:11:40 +0200Hi,
Can you send me an example? It's always easier to have something to look at.
// Dan
PS: If you create useful scripts you are welcome to send them to me and I might include them in future versions.
Kolja wrote:
> Dear Sir or Madam,
>
> I just discovered a bug in Flash Renamers RegEx Routine. When you use a RegEx which captures part of the filename and uses it in the replacement part, and this happens more than once in a single filename, the second and later replacements use the same match-texts caught by the first match, so wrong text is used in the replacements.
>
> Currently this can be circumvented by limiting RegEx Search-Replace actions to match only once, and running that regex multiple times.
>
> For those who like a more practical style there is the possibility to use the scripting to circumvent this problem. I used a JavaScript based Script to clean up some more filename problems (i.e. remove not wanted dots (".") within a filename.
>
> Yours, Kolja
>
>
Can you send me an example? It's always easier to have something to look at.
// Dan
PS: If you create useful scripts you are welcome to send them to me and I might include them in future versions.
Kolja wrote:
> Dear Sir or Madam,
>
> I just discovered a bug in Flash Renamers RegEx Routine. When you use a RegEx which captures part of the filename and uses it in the replacement part, and this happens more than once in a single filename, the second and later replacements use the same match-texts caught by the first match, so wrong text is used in the replacements.
>
> Currently this can be circumvented by limiting RegEx Search-Replace actions to match only once, and running that regex multiple times.
>
> For those who like a more practical style there is the possibility to use the scripting to circumvent this problem. I used a JavaScript based Script to clean up some more filename problems (i.e. remove not wanted dots (".") within a filename.
>
> Yours, Kolja
>
>