Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Get sub string from string

tjamal1
8 - Asteroid

I have a field which contains following values

"productName": "Apple",
"productName": "Amazon",
"productName": "Wayfair",
"productName": "Sephora",
"productName": "Expedia.ca",

Is there any way to extract text between second quotations 

like Apple

      Amazon

3 REPLIES 3
NicholasM
Alteryx Alumni (Retired)

Hey @tjamal1,

 

You could use the Regex tool, or you could make things simple and use the text to columns tool, using quotes as your delimiter. I have mocked up a workflow that you can use to get this information.

 

Let me know if you have questions. 

tjamal1
8 - Asteroid

Thanks , What would be the Regex approach ? 

NicholasM
Alteryx Alumni (Retired)

Regex would be a bit more dynamic, allowing you to basically scan the text field and only parse out what is within the second quotations. Here is what i would suggest using! 

 

If you have never used regex I would highly suggest looking at this  post to get you up to speed. It can get pretty complex. 

 

Capture.PNG

Labels
Top Solution Authors