ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. 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

Regex Trim everything before special character

Bobbins
8 - Asteroid

Morning,

A simple one which despite searching still isn't easily found. I want to regex trim everything upto and including the *. E.g.

 

Field1
Lots of *Gobblegook
*Heretoo
Maybe not here

 

I have this:

[code].*(\*)[/code[ which on Regex101 does highlight everything upto the *, but then i am stuck!

Thank you

3 REPLIES 3
binu_acs
21 - Polaris

@Bobbins 

REGEX_Replace([Field1], '.*\*(.+)', '$1')

binuacs_0-1646733253561.png

 

binu_acs
21 - Polaris

@Bobbins Another option using formula

binuacs_1-1646733429305.png

 

Bobbins
8 - Asteroid

@binu_acs Ah, so close. Thank you for the assistance and showing a different way of doing things!

Labels
Top Solution Authors