Achieving this with a single expression?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
terrypin
Posts: 172
Joined: Wed Jul 11, 2007 7:50 am

Achieving this with a single expression?

Post 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
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Here's one way:

Find what: (....)-(..)-(..)_(..)-(..)-(..)(\.mp4)
Replace with: $1$2$3-$4$5$6$7
terrypin
Posts: 172
Joined: Wed Jul 11, 2007 7:50 am

Post 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
Post Reply