I am getting a string as output example below,
"errors": "Report with Report Name production already exists[Ljava.lang.StackTraceElement;@8cb9814"
I need a regex to identify a pattern to eradicate [Ljava.lang.StackTraceElement;@8cb9814
it from output string. So that the output string looks like
"errors": "Report with Report Name production already exists."
Below is the code I am trying to complete.
let x = `"errors": "Report with Report Name production already exists[Ljava.lang.StackTraceElement;@8cb9814"`;
console.log(x.replace("Some Pattern", ''));