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.
SOLVED

REGEX - Beginner

suby
11 - Bolide

Hi All,

 

Trying to remove all the characters(number : #) before the string in the name column and email column. Tried using the Data cleansing tool not bringing the desired result.

 

suby_0-1606238453830.png

 

Any help would be much appreciated

14 REPLIES 14
atcodedog05
22 - Nova
22 - Nova

Hi @suby 

 

So in "(.*)#(.*)", "$2"

(.*) - group before #, group 1

#(.*) - group after #, group 2

 

$2 keep only group 2.

suby
11 - Bolide

So in "(.*)#(.*)", "$2"

 

Name =  6567;#abc

 

(.*) - group before #, group 1  

On group 1 does it group  6567;

 

#(.*) - group after #, group 2

On group 2 does it group anything after the #

 

$2 keep only group 2.

atcodedog05
22 - Nova
22 - Nova

Yes thats absolutely right 🙂

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @suby 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

suby
11 - Bolide

Great thanks much appreciated.

Labels
Top Solution Authors