I’m wondering how to remove the first and last character of a string in Javascript.

My url is showing /installers/ and I just want installers.

Sometimes it will be /installers/services/ and I just need installers/services.

So I can’t just simply strip the slashes /.

9 Answers
9

Leave a Reply

Your email address will not be published. Required fields are marked *