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

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