Hello,
I've read the forum on the regext syntax but i am still having problems.
I'm trying to rename a file. I have a software that structures some files and spits it out with random gibberish names.
My aim is to remove said gibberish.
the names are written like this.
67cfd049-8519-4bc4-9404-951fce1e5203_MIX_PRO.txt
If it was one file, i would just rename it myself but, its over 1000.
the only useful part of the title is MIX_PRO, however, it does not always start with MIX, it can be anything, only identifier i saw was the _ before actual title.
is there a way for me to use regext to set a variable to the name after the _ (underscore) and remove all characters before it.
i would really appreciate the help.
i know i may have used this forum incorrectly before, but i really need support on this, ive been trying many things for hours and got no where.
- Ash Person
Regxt - renaming help needed Please
Re: Regxt - renaming help needed Please
Hi,
If you are sure to keep all strings FROM _ , you can use /_.+/
It will keep all after the first "underscore"(_).
Cheers.
Benjamin
If you are sure to keep all strings FROM _ , you can use /_.+/
It will keep all after the first "underscore"(_).
Cheers.
Benjamin
Re: Regxt - renaming help needed Please
Like this?
$regext("%s_original_name%","/_.+/")
but this deletes the whole string and keeps only the extenstion
$regext("%s_original_name%","/_.+/")
but this deletes the whole string and keeps only the extenstion
Re: Regxt - renaming help needed Please
No, you must remove / and / The good expression is "_.+"
Re: Regxt - renaming help needed Please
Thanks so much it worked