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
7 - Meteor

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
binuacs
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