Alteryx Designer Desktop Discussions

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

Two Regex Scenarios

BRRLL99
11 - Bolide

Hi

I have 2 regex scenarios

first:

 

ABC OUR A/C 315-915073-590 AKL-MY
HSC BANK A/C 123-654321-100 AUD-MY
ABCHSBC BANK A/C 321-123456-900
HSC BANK ACCOUNT NO 143-654321-100 AUD-MY

Expected out: ( All numbers should be separate column, and in Last if MY contains then MY should be shown)


i tried using (\d{3})-(\d{6})-(\d{3}) , after this i have to add formula tool

 

 

315915073590MY
123654321100MY
321123456900 
143654321100MY

Second:

 

id
1009088 //03788810 OUTGOING ABCBANK
SRE 97004 //NZS0123E45J9 1/ INTERNATIONAL SERVICE
ARE 91004 //AUD99123E45ZX9 GLOBAL ACCOUNT
1119088 //05788810 OUTGOING ABCBANK SERVICES

 

Expected output: 

3788810
NZS0123E45J9
AUD99123E45ZX9
5788810
5 REPLIES 5
aatalai
14 - Magnetar

@BRRLL99 take a look at the workflow attached, did both in one hope it helps

 

flying008
14 - Magnetar

Hi, @BRRLL99 

 

FYI.

 

录制_2024_03_19_10_36_00_23.gif

 

 

BRRLL99
11 - Bolide

@aatalai @flying008 
In the expected out i would like to include //

id
1009088 //03788810 OUTGOING ABCBANK
SRE 97004 //NZS0123E45J9 1/ INTERNATIONAL SERVICE
ARE 91004 //AUD99123E45ZX9 GLOBAL ACCOUNT
1119088 //05788810 OUTGOING ABCBANK SERVICES

 

Expected output: 

//3788810
//NZS0123E45J9
//AUD99123E45ZX9
//5788810
aatalai
14 - Magnetar

@BRRLL99 this should do the trick

flying008
14 - Magnetar

Hi, @BRRLL99 

 

Please change the regex expression (?:\/\/)(\w+?)(?=\s) to (\/\/\w+?)(?=\s)

Then try again.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels