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

Alteryx Designer Desktop Discussions

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

RegEx Parsing Syntax Question

Bren312
8 - Asteroid

Hi everyone, I'm hoping someone can help me with a RegEx problem. I've got one column called 'Product Name' which contains the company name and product description (3m File Hangers, for example).
I'm trying to create a column for 'Company Name' and a column for 'Product Description' (so, 3m in 'Company Name' and 'File Hangers' in 'Product Description').

I've tried a (\w*\d*\W*)\s RegEx but it isn't ticking the boxes for every situation. Can anyone help me out with this? I'm using version 2019.2 and have attached a workflow. Thanks everyone!

 

Bren

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@Bren312 
I assume the two columns are seperated by the first space.

CaptureA2.PNG

Bren312
8 - Asteroid

Thanks @Qiu; top notch stuff!  You are correct (and I should have specified) that the two columns were separated by the first space.  Sometimes I think I'm getting the hang of RegEx and then it throws me for a loop.  Thanks again!

 

Bren

Qiu
21 - Polaris
21 - Polaris

@Bren312 
Glad to help.

I always use this one to test my regex, and lets get better and better for the RegEx.

https://regex101.com/

Labels
Top Solution Authors