We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
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