Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

String trucation

Nandakishore
8 - Asteroid

Hello ,

 

Trying to clean up below string using regex using expression (\w+)  : 

 

RE 001705 20004658.SE0008 VOLVO LOGISTICS AB ARHK-4, DEPT 5325, ARK 1 ...

 

While doing so the higlighted text is splitted into two strings 20004658 and SE0008 . 

 

I would like to retain as  20004658.SE0008 . Any help .

 

Thanks

10 REPLIES 10
aatalai
14 - Magnetar

@Nandakishore is it please possible to have some more sample data - both input and output?

Nandakishore
8 - Asteroid

Hi @aatalai,

 

Below are the details : 

 

Input Output 1Output2
RE 001705           20004658.SE0008  VOLVO LOGISTICS AB                                                                                                                          ARHK-4, DEPT 5325, ARK 1                                                     ...RE 00170520004658.SE0008 

 

Nandakishore
8 - Asteroid

Hi @aatalai ,

 

Few more details : 

 

Input Output 1Output2
RE 001705           20004658.SE0008  VOLVO LOGISTICS AB                                                                                                                          ARHK-4, DEPT 5325, ARK 1                                                     ...RE 00170520004658.SE0008 
RE 001705           20004658/SE0008  VOLVO LOGISTICS AB                                                                                                                          ARHK-4, DEPT 5325, ARK 1                                                     ...RE 001705

20004658/SE0008 

 

 

aatalai
14 - Magnetar

@Nandakishore does the attached workflow help?

Nandakishore
8 - Asteroid

Hi @aatalai ,

 

I think this will fail if output1 and string after output 2 is changed .

aatalai
14 - Magnetar

@Nandakishore can you please provide some more examples? so I can adapt accordingly

Nandakishore
8 - Asteroid

Hi @aatalai ,

 

Some more examples :

 

Input Output 1Output2
AB 001705           20004658.SE0008  XXX XXXX AB                                                                                                                          A1223445555                                             ...RE 00170520004658.SE0008 
RE 001705       20004658/SE0008  YYYY AB                                                                                                                          dddddddd                                              ...RE 00170520004658/SE0008 
aatalai
14 - Magnetar

@Nandakishore this should do the trick, let me know how you get on

Nandakishore
8 - Asteroid

Hi @aatalai ,

 

It worked . THankyou .

Labels