You are not logged in.
Pages: 1
I need to replace that bar but looks that now are the type of separator, so it doesn't work...
Edit: I will do it with RegEx
Last edited by SafetyCar (2009-08-31 03:05)
If this software has helped you, consider getting your pro version. :)
Offline
I need to replace that bar [...]
I will do it with RegEx![]()
I don't know where you want to replace this .... but
if you want to match an pipe symbol | literally in an haystack,
you have to escape it with an backslash \| in the search pattern.
Haystack: one|two
Find needle: one\|two
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
No, I was talking about the replace rule, but I wasn't able to do it, I did it with the RegEx
If this software has helped you, consider getting your pro version. :)
Offline
Someone has recently proposed to change *|* delimiter in Replace and Remove rules to |, as in Rearrange rule. Well, I did that, and this topic is the answer to question whether it was a good idea or not...
I have reverted back to *|* delimiter in Replace and Remove rules. Latest beta version.
Offline
Someone has recently proposed to change *|* delimiter in Replace and Remove rules to |, as in Rearrange rule.
That was me Just wanted to be unique, but didn't expect this example which is really rare
TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!
Offline
but didn't expect this example which is really rare
In this case I just wanted to replace with a "/" after using detect extension (and I think that was also extracted from another idea that you had ). The problem was that I have a preset prepared to do it, and this change gave me some problems.
But, well, I'm not against this change, but shouldn't it have a escape like in RegEx?
If I would like to do this, when reading the preset I would do it in this way (assuming the escape):
- If there is a | in use but it's not used like this: *|*, replace with \|
- Replace *|* with |
As I where writing I came across with a possible problem
what about, if someone, after the update starts using * for other special purposes? like
*some_kind_of_tag* and wants to replace 2 results at a time? (OK, this is a little crazy but who knows)
Mmmm... one idea... What about something like a "compatibility signature" (I don't know how to call it) on the presets to know in which version of ReNamer was written.
And this could be combined, my first idea...
BUT
Even if you are not going to add the escape possibility, I think that the version of the program inside the preset file it's no so bad idea (for example: What now I'm thinking it's that it could be helpful, if you would like to update some pascal functions [ In this case the *.pas, would also need that "signature" {damn, an what would happen when importing the pascal to renamer? }])
----------
I think I have a problem,
I think I think too much.
I'm sorry, but there I leave my ideas, maybe someone can adapt and make them usable
Whow, wait... to finish one quote I heard a few days ago:
"The reason that God was able to create the world in seven days is that he didn't have to worry about the installed base." -- Enzo Torresi
Last edited by SafetyCar (2009-09-07 10:55)
If this software has helped you, consider getting your pro version. :)
Offline
Pages: 1