#1 2019-08-31 13:32

RBendo
Member
Registered: 2019-08-31
Posts: 2

Numeric pattern reference

Hi, i have file like this:

prefix 01x29 suffix.ext
prefix 28x74 suffix.ext

need to rename to:

prefix - 01x29 - suffix.ext
prefix - 28x74 - suffix.ext

Hot to?

Offline

#2 2019-08-31 14:40

RBendo
Member
Registered: 2019-08-31
Posts: 2

Re: Numeric pattern reference

P.S. prefix e suffix are not the same in any file

Offline

#3 2019-08-31 17:22

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Numeric pattern reference

That can be achieved with a Regular Expressions rule, like follows:

> Replace expression "\b(\d+x\d+)\b" with "- $1 -" (skip extension)

See the Regular Expressions manual for more information.

Offline

Board footer

Powered by FluxBB