ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

REGEX help please

NatSnook
8 - Asteroid

Hi regex gurus 🙂

i have a large set of filenames which contain an identifier in various positions of the filename. the identifier is two characters which are always the same followed by 5 digits that vary eg 

 

this is the filename for AB12345.pdf

AB54321 details here.docx

also AB32145 info here.pdf

 

is there a way of parsing this in regex to extract the 7character identifiers?

 

TIA

Nat

2 REPLIES 2
KarolinaRoza
11 - Bolide

hi @NatSnook 

 

please try Regex with formula:

 

KarolinaRoza_0-1624965191915.png

(\w{2}\d{5})

 

regards,

Karolina

 

NatSnook
8 - Asteroid

perfect thank you - silly i couldn't work that one out 🙄

Labels
Top Solution Authors