ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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