In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. 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

Need help regarding syntax of REGEX REPLACE

anonymous008_G
8 - Asteroid

Hi All,

 

I am trying to format 1 Year Ended value into 1Y using formula tool. Can someone please guide what formula i can write to get the desire output. 

 

I know REGX_REPLACE can work but no idea how to write it.

2 REPLIES 2
anonymous008_G
8 - Asteroid

Thanks but i got the solution. 
this syntax worked REGEX_Replace([Period], " \Year Ended", "Y")

Manoj_k
10 - Fireball

REGEX_REPLACE([column name], " Year Ended$", "Y")

Labels
Top Solution Authors