We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Trimming off

rmartinez4
8 - Asteroid

Hi All,

 

Trying to trim or delimit of a name column. From @ and .feyppsmoldixgt.com evertyhing is should move over from the name column to the output column. Any ideas to get this done because using the text to column and trim functions are not cleaning down the columns.

 

NameOutput
FunctomloopNnJina-0::sunmazz-00288FunctomloopNnJina-0::sunmazz-00288
venuscollector000venuscollector000
uranucolumns524uranucolumns524
uranucolumnsr5412uranucolumnsr5412
uranucolumns118uranucolumns118
SUN@00.43.00.700.43.00.7
JupitersMarsHolder@T123456789TYT123456789TY
TT123PTTXSaunar@xxxTTT01xxxTTT01
XXXSXFarr@XXXSPVERO00.feyppsmoldixgt.comXXXSPVERO00
XXXSXTarr@XXXSPVERO01.feyppsmoldixgt.comXXXSPVERO01
Mars@00.88.00.900.88.00.9
mitchmitch

 

 

Thank you,

4 REPLIES 4
JamesCharnley
13 - Pulsar

Hi @rmartinez4,

 

This looks like a good case for RegEx. Somebody better at RegEx than me will be able to pipe up with a one tool solution, but this should dynamically work in the meantime:

 

JamesCharnley_0-1663776127585.png

 

Emmanuel_G
13 - Pulsar

@rmartinez4 

 

Find attached the way of doing this with some regex expressions.

 

Let me know if there is any issue and do not hesitate to mark this answer as solution if it helped.

 

Emmanuel_G_0-1663776805164.png

 

rmartinez4
8 - Asteroid

Hi Emmanuel,

@Emmanuel_G

 

both solution provided work well but I forgot to add the last 3. Is it possible to add the regex solution with the last 3 included.

 

XBXY-XX-1111.WAXI.COM                                  XBXY-XX-1111

VRAM40-TGAGAXDSTILLY-100.01.000.000       VRAM40

WSLO-XESX-XWTXA001(XX-XQCXX-XAX2)     WSLO-XESX-XWTXA001

 

rmartinez4_0-1663780324431.png

 

Thank You,

JamesCharnley
13 - Pulsar

@rmartinez4  I've added expressions to the formula that'll fix the new given inputs, but it's hard to know quite how dynamic the RegEx will be without knowing the full extent of the inputs that will come in. This should work in the short term at the very least until maybe someone can come up with something better if needed.

Labels
Top Solution Authors