Need to remove square brackets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 02:17 AM
Hello Everyone!
I am getting sys id after glide hit and storing in a variable, but when I print that variable sys_id is showing in brackets. I want to remove those square brackets from the sys_id.
var b = ac_ci;
gs.print(b);
Output: b = [bfb9f882db38] {i want to remove these brackets}
I already tried the regex method but had no luck.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 02:41 AM
You may try Replace method.
var b = ac_ci;
b = b.replaceAll(']','').replaceAll('[','');
gs.print(b);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 02:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 02:51 AM
Please post your complete script if possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2023 02:53 AM
This is my script: