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 Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.

Need urgent help

Sivory18
7 - Meteor

Hello

 

I am wanting to remove the words after the number, so from "WHAT IT LOOKS LIKE" to "WHAT I WANT"

4 REPLIES 4
Ritesh_Parmar
6 - Meteoroid

you can use Regex_replace Refer workflow

REGEX_Replace([Field1], "([A-Z]+-\d+).*", "$1")

Ritesh_Parmar
6 - Meteoroid

logic : it captures the uppercase letters pattrn  followed by a hyphen and digits, and will removes everything after that.

Sivory18
7 - Meteor

Hi Ritesh, what formula would i use if there was something like
ACdDJWI-5023224-04-0114:56:13.120Dhwewidjwjfksowi[lfdfdfdf]2024-04-0116:20:35.960MID:ITSUPPORTRuntheactivityRIOT-615634ApprovedApproved

and want to only grab "RIOT615634" 

binu_acs
21 - Polaris

@Sivory18 

REGEX_Replace([WHAT IT LOOKS LIKE], "^(.*?)(?=Approved).*", "$1")

binuacs_0-1753118113517.png