i have a time string in a file name with current format '(0434min)' (w/o the quotes)
what is missing is the separator - which needs to be '-' (: has a syntax issue)
so how do i search for '??min' and replace with '-??min'?
Match: (.*?)\s(\d\d)(\d\d)min(.*)
Replace: \1 \2-\3min\4
therube wrote:1:Regex
- Code: Select all
Match: (.*?)\s(\d\d)(\d\d)min(.*)
Replace: \1 \2-\3min\4
(This assumes that there is a <space> before the opening set of digits.)
I believe that should do it.
Give it a run & make sure.
Match: (.*?)\s\((\d\d)(\d\d)min\)(.*)
Replace: \1 (\2-\3min)\4
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (0416min) (AID) (NORM).m4a ->
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (04-16min) (AID) (NORM).m4a
therube wrote:Try this one.
- Code: Select all
Match: (.*?)\s\((\d\d)(\d\d)min\)(.*)
Replace: \1 (\2-\3min)\4
- Code: Select all
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (0416min) (AID) (NORM).m4a ->
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (04-16min) (AID) (NORM).m4a
therube wrote:Try this one.
- Code: Select all
Match: (.*?)\s\((\d\d)(\d\d)min\)(.*)
Replace: \1 (\2-\3min)\4
- Code: Select all
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (0416min) (AID) (NORM).m4a ->
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (04-16min) (AID) (NORM).m4a
therube wrote:Try this one.
- Code: Select all
Match: (.*?)\s\((\d\d)(\d\d)min\)(.*)
Replace: \1 (\2-\3min)\4
- Code: Select all
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (0416min) (AID) (NORM).m4a ->
Aaron Neville & The Neville Brothers - Tell It Like It Is (The Big Easy) (1987) (256kbits) (04-16min) (AID) (NORM).m4a