I would like to remove all characters after the first white space instance.
My use case: In my table, I have a name column that is not separated into first and last. They are combined (e.g. 'John Doe' in one cell). I would like to delete everything after the first whitespace instance (e.g. 'John Doe' --> 'John').
Is that possible in AMPScript?
I saw the trim() function, but that does not seem to do what I want.
Thank you