Hello,
I extracted a field like this:
folder="prova^1.ED56GH"
and I want to change it at search time replacing all dots with "/", and then all ^ with dot. In the example I will obtain:
folder="prova.1/ED56GH"
I write in **props.conf**:
EVAL-folder = if ( match(folder, "."), replace(folder, "([^\.]+)\.(.+)", "\1/\2"), folder)
to replace "." with "/". But I can't retype:
EVAL-folder = if ( match(folder, "^"), replace(folder, "([^\^]+)\^(.+)", "\1.\2"), folder)
to replace ^ with "." after first EVAL. It doesn't work.
So, how do I can achieve this?
Many many thanks!
Marco
↧