Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove all before "period" character

suarezr
7 - Meteor

I am working on parsing a JSON output that has multiple rows in the downloaded data. The goal being to get the JSON converted into a CSV dataset.

The best option I have found so far is Substring, but I would rather use REGEX instead of looping through this formula n times.
Substring([JSON_Name],FindString([JSON_Name], ".")+1,Length([JSON_Name]))

I have also tried these, but neither works.
REGEX_Replace([JSON_Name], ".*.\s", "")
REGEX_Replace([JSON_Name], ".*\\.", "")

2 REPLIES 2
apathetichell
20 - Arcturus

REGEX_Replace([JSON_Name], ".*.\s", "") looks at any characters - any number of characters, a single any character and a space --- that doesn't seem like what you want..

 

 

try ---- regex_replace([JSON_NAME],"^(.*)\.(.*)$","$2")

 

 

 

suarezr
7 - Meteor

Thanks!

I also figured out an alternative using REVERSESTRING, that works as a FindString-based alternative

ReverseString(Left(ReverseString([JSON_Name]),FindString(ReverseString([JSON_Name]),".")))

Labels
Top Solution Authors