Page 1 of 1

Achieving this with a single expression?

Posted: Thu Dec 31, 2020 12:54 pm
by terrypin
It's obviously easy in two, but in a single step how can I get from this
2020-12-29_12-34-56.mp4
to this
20201229-123456.mp4
please?

Terry

Posted: Thu Dec 31, 2020 2:03 pm
by ak47wong
Here's one way:

Find what: (....)-(..)-(..)_(..)-(..)-(..)(\.mp4)
Replace with: $1$2$3-$4$5$6$7

Posted: Thu Dec 31, 2020 3:46 pm
by terrypin
Excellent - thank you so much! Works fine.

And now that I see it, I realise I should have been able to do it myself.

Terry