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

Select word after character

sinnids99
6 - Meteoroid

Hi All,

 

I need to pick the rightmost words after the character "-"

 

example - abc-de-bravo 1

it should pick out  bravo 1

3 REPLIES 3
jdunkerley79
ACE Emeritus
ACE Emeritus

I suggest:

REGEX_Replace([Field1], "^.*-", "")

This will replace everything up to the last - with an empty string.

 

Sample attached

sinnids99
6 - Meteoroid

Thanks v much, perfect! Is there another solution using RIGHT as well?

jdunkerley79
ACE Emeritus
ACE Emeritus

Yep.

 

You could:

RIGHT([Field1], FindString(ReverseString([Field1]),"-"))

 

Labels
Top Solution Authors