Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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
binuacs
21 - Polaris

@Bobbins 

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

binuacs_0-1646733253561.png

 

binuacs
21 - Polaris

@Bobbins Another option using formula

binuacs_1-1646733429305.png

 

Bobbins
8 - Asteroid

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

Labels
Top Solution Authors