April 1st, 2012, 11:30 AM
Pro's please help with regular expression
tried to find a solution with searching in forums and google.... maybe it's a bit to complex....
obviously for me
I have to replace many files, for example:
COP_LAND_HDTV_ARD.ts to: COP_LAND_[HDTV]_[ARD].ts
BRAEUTE_SDTV_3SAT.ts to: BRAEUTE_[SDTV]_[3SAT].ts
FRANZ_UND_ANNA_HDTV_ORF2.ts to: FRANZ_UND_ANNA_[HDTV]_[ORF2].ts
I mean basically the next to last
"_" should be replaced with: "_["
the last "_" should be replaced with: "]_["
and ".ts" should be replaced with "].ts"
...... any ideas with what kind of pattern i could do this ??
(I use better file rename)
thx in advance for help !
April 1st, 2012, 02:55 PM
I'd say something about those filenames but I know it wouldn't change anything.
April 1st, 2012, 03:25 PM
first of all: thank you very much for your help !
as i'm really a beginner.... at first I didn't understand anything !!
but after some trial and error, I figured out what I had to do - you are awesome !!! - thx thx thx
and for other "beginners":
in better file rename
change: entire file name
action: replace using regular expressions
and just cause i'm curious....
what you'd say about the filenames ??
April 1st, 2012, 03:42 PM
It's nothing, don't worry about it.
I gave you half of the answer because I thought you could come up with the other half by yourself. And you did