1//Here you go
2
3var yourString = "/installers/";
4var result = yourString.substring(1, yourString.length-1);
5
6console.log(result);
7
8
9
10
11//Or you can use .slice as suggested by Ankit Gupta
12
13var yourString = "/installers/services/";
14
15var result = yourString.slice(1,-1);
16
17console.log(result);
1String loginToken="[wdsd34svdf]";
2System.out.println(loginToken.substring(1, loginToken.length()-1));
3