- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 10:50 AM
Hi,
My requirement is to copy whatever is available after '(Additional comments)'.
Eg:
2023-02-02 21:08:06 - Arun Vbcd Efghj - 23565645 (Additional comments) kkkkkkkkkkkkkkkkkkkk
In the above example I'm looking to get only 'kkkkkkkkkkkkkkkkkkkk'.
Please guide me how can I achieve this.
I tried to use split() and Regex, but unfortunately I couldn't achieve the required result.
Thanks in advance
Arun
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 12:29 PM
It sounds like you are getting the correct journal entry, so assuming it is assigned to a variable named str you should be able to split it like this:
var splitStr = str.split('comments) ')[1];
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 11:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 12:29 PM
It sounds like you are getting the correct journal entry, so assuming it is assigned to a variable named str you should be able to split it like this:
var splitStr = str.split('comments) ')[1];