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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Dynamic regex expression

Chaoued
8 - Asteroid

Hello Team, Is there a regex function that replaces the word from \ to the end with blank ? because Q2_2012 changes !!

 

Input : Rapport F12/Q2_2012 Versus F13/Q2_2012

Output : Rapport F12 Versus F13

 

Thanks for your help

2 REPLIES 2
binu_acs
21 - Polaris

@Chaoued one way of doing this

image.png

REGEX_Replace([Data], '\/Q\d_\d{4}', '')
Christina_H
14 - Magnetar

This works for this example but may not work for all your data.

REGEX_Replace([Input],"\/\S+","")

image.png

Labels
Top Solution Authors