Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 08:03 AM
Hi David,
You can do this by regEx and replace. Here is an example you can test and reuse pretty much:
var test = 'goran - remove this';
gs.debug(test.replace(/\s[-]\s.*/, ''));
//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor's Guide To ServiceNow