Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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" 

binuacs
21 - Polaris

@Sivory18 

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

binuacs_0-1753118113517.png