Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Parsing out certain id from a field

Cherkos12
7 - Meteor

I want to create a new field for the id highlighted in green. what tool or formula can i use to do that?

 

Thanks for your help 

 

Campaign Name
21 Wx utilities and research 7013xxxx - ATL - 10/12
21 Agri WBST 7013xxxx
21 En Refined Energy 7013xxxxx - nov
21 Wx public safety 7013xxxx
21 Ag produce 7013xxxx follow up + nurture
21 Ag Large Grains Stock Q3 MKTG 7013xxxx
2 REPLIES 2
phottovy
13 - Pulsar
13 - Pulsar

Hi @Cherkos12 ,

 

You can achieve that with the RegEx Parse tool. Attached is an example that works with your example but would need to be modified if the ID don't always begin with 7013. Here is the expression I used:

(7013.{4}) 

7013 = find an exact match for the characters "7013"

. = find any character after the "7013"

{4} = find any single character 4 times

 

Cherkos12
7 - Meteor

Thanks, this worked.

Labels