Alteryx Designer Desktop Discussions

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

Parse Data

bsolove
8 - Asteroid

I've attached my original data and how I want it to be modified.  I need to parse out the last few characters from a set of data, but the length of the data I need to parse varies.

7 REPLIES 7
BenMoss
ACE Emeritus
ACE Emeritus

Text to columns, and use the decimal delimiter (Y)

jdunkerley79
ACE Emeritus
ACE Emeritus

I'd suggest using the Regex tool in parse mode:

2018-11-12_15-45-36.png

BenMoss
ACE Emeritus
ACE Emeritus

Care to explain the Regex @jdunkerley79 for @bsolove.

Sometimes although the regex is a bit more efficient, in terms of number of tools, the text to columns route will be much easier to handover to individuals not familiar with ReGex.

bsolove
8 - Asteroid

They don't all end in a decimal though.  I have different entities.  They either end in Inc. or LLC (with no decimal).

jdunkerley79
ACE Emeritus
ACE Emeritus

Fair point @BenMoss.

 

The expression:

^(.*) ([^ ]+)$

Matches the whole string input.

 

The first part "^(.*) " will 'greedily' match until the last space 

The second part "([^ ]+)$" will match every thing to the end of the line

 

In parse mode each bracketed section becomes a column.

 

This should work as long as there is a space before the last part.

ponraj
13 - Pulsar

Here is the sample workflow for your case. Hope this is helpful. 

 

WorkflowWorkflowResultsResults

bsolove
8 - Asteroid

That worked perfectly.  Thank you!

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