Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2020 06:57 AM
Hi,
I have a string such as
var str = "Hello Servicenow user Chinmayee Mishra.User user ID is : 1234s" ;
I have to find the ID and replace with another ID , lets say
var newStr = "Hello Servicenow user Chinmayee Mishra.Your user ID is : 987c";
The string length is not constant as the names can be different.
How do I do it ? Please help.
Thanks & Regards,
Chinmayee Mishra
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting and Coding