SOLVED
Paarse
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Simon1187
9 - Comet
‎12-05-2021
06:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi everyone!
I am trying to get the last part after the last space. Could you please help me with that?
Thanks, Simon
Solved! Go to Solution.
Labels:
- Labels:
- Best Practices
1 REPLY 1
20 - Arcturus
‎12-05-2021
07:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
you might want to play with a regular expression. But I'll show you another way.
countwords([field]) will get you the number of words. If you subtract one from that result you can get the last word as:
getword(countwords([field])-1)
or
regex_replace([field],".*\s(.*)",'$1')
cheers,
mark
Alteryx ACE & Top Community Contributor
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
