Start Free Trial

Alteryx Designer Desktop Discussions

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

Regex Syntax Help

jessy_chow
8 - Asteroid

First time using regex, looking for some assistance on how to write the syntax for get the following

 
 

Screenshot 2025-06-04 114703.png

 This is the syntax that I have '.*(\d{6,}).*', '$1') but it doesn't give me my desired results. I'm not sure how or where I can adjust. 

THANKS FOR THE HELP! 

5 REPLIES 5
mceleavey
17 - Castor
17 - Castor

Hi @jessy_chow ,

 

Assuming this is representative of the consistent format you will be able to get the result using the following regex:

^(.*?)\s

 

This says "Take the string from the beginning to the first space.

 

Configure Regex as follows:

 

mceleavey_solution.jpg

 

mceleavey_solution.jpg

 

I hope this helps,

 

M.



Bulien

jessy_chow
8 - Asteroid

Thanks! 

It's close but my text has the astericks and 2 spaces before the text starts. 

binu_acs
21 - Polaris

@jessy_chow another regex method

image.png

jessy_chow
8 - Asteroid

It worked! Thank you!

flying008
15 - Aurora

Hi, @jessy_chow 

 

FYI.

^[*\s]*(\w+)\s

 

录制_2025_06_05_08_03_12_351.gif

Labels
Top Solution Authors