#1 2024-08-05 13:54

rghilton
Member
Registered: 2024-08-05
Posts: 2

removing random DocID (12 digits including 2 hyphens)

Hi all

Another newbie here. 

Can anyone assist with removing a random 12 number sequence (example: 1256-4587-9658) from a file name?  The number sequence wont always be in the same position of the file name but will always be in the same format of ****-****-****

Thank you!

Offline

#2 2024-08-05 15:19

rghilton
Member
Registered: 2024-08-05
Posts: 2

Re: removing random DocID (12 digits including 2 hyphens)

Worked it out via ChatGPT.  -  _\d{4}-\d{4}-\d{4}

Offline

#3 2024-08-05 15:45

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

Re: removing random DocID (12 digits including 2 hyphens)

That's correct.

You can use the Regular Expressions rule to replace "\d{4}-\d{4}-\d{4}" pattern with an empty string.

Offline

Board footer

Powered by FluxBB