Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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