2022.1.1.30569 Patch Release Update

The 2022.1.1.30569 Patch/Minor release has been removed from the Download Portal due to a missing signature in some of the included files. This causes the files to not be recognized as valid files provided by Alteryx and might trigger warning messages by some 3rd party programs. If you installed the 2022.1.1.30569 release, we recommend that you reinstall the patch.

Alteryx Designer Discussions

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

Parse Member ID from Multi Line Text Field

RifferX
8 - Asteroid

Hi all,

 

I've tried going at this a few different ways with no luck. I am pretty raw yet with Regex and am hoping this current business need will spring my skillset further with some help from the Community here. I have also tried Text to Columns with no luck. 

 

I need to parse out the Member ID in the dummy example string below into a separate column. Whatever method that can locate and extract it I am open to, whether it's via Regex or other methods. The Member ID can be different lengths, but there is consistency with the line it is contained in and the 4 spaces prior to the number after the line text, which is "TAT Goal: 5 Days Member Details :    2931317250"

 

Here is what the Comments field looks like and I have also attached a screenshot with the desired output. I have about 26,000 rows in my dataset. Any help on this would be appreciated immensely and I am not concerned about what happens to the original Comments field. *Cannot post the text here without the system picking it up as spam, so attaching via Notepad.

6 REPLIES 6
RifferX
8 - Asteroid

Bumping this since it got buried due to spam warnings.

 

 

 

 

atcodedog05
22 - Nova
22 - Nova

Edit: Posted amended workflow below

RifferX
8 - Asteroid

Thanks @atcodedog05 but I need any Member ID, not just this one in the example. They can also be different lengths, but most are 9 digits with 4 white spaces after the colon. There is also a white space before the colon.

atcodedog05
22 - Nova
22 - Nova

Hi @RifferX 

 

Oops sorry my bad. I guess i forgot to replace number with \d+. Here is the actual workflow let me know if you face any issues.

 

Workflow:

atcodedog05_0-1641830384271.png

 

Hope this helps : )

 

RifferX
8 - Asteroid

@atcodedog05 very much appreciate your assistance. 

 

When I first ran your latest solution, I didn't return all the Member IDs. When I compared the field strings, I found that there were instances of a different line string, so I shortened the Regular Expression to just .*Member Details :\D+(\d+).* and it worked like a charm!

 

Thanks again for this, now I need to figure out the logic behind the Regex language because I was way off in what I was trying to do.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @RifferX 

Cheers and have a nice day!

 

Helpful resource on Regex : 

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-RegEx/ta-p/37689 

https://regexr.com/

Labels