Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex help needed

mbrenn207
6 - Meteoroid

Hi,

 

I need help with a Regex to extract the 10 digit string value located at the beginning of this string.  Note that not it will not always be in this format. There may be a __X__ or [X] in front of the string.  What can I use to extract this pattern?

 

Examples:

C-223-h003 Exclusion Of Mercury (Navsea) (Mar 2019)

__X__ D-223-g003 Contractor Obligations

(A) G-222-h004 Requirements of Subcontractors

 

Desired outcome:

C-223-hoo3

D-223-goo3

G-222-hoo4

1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @mbrenn207 

 

Here is the regex for the task. I am directly scanning for the required pattern.

 

(\w\-\d{3}\-\w\d{3})

 

Workflow:

atcodedog05_0-1626243714436.png

 

Hope this helps : )

 

Labels
Top Solution Authors