regex - Remove symbol "/" at start and end of string -


there string:

/text/text/text/ 

i'm new in scala , don't know how remove start , end symbols "/". know it's regular expression, how build it?

a regex not necessary:

"/text/text/text/" stripprefix "/" stripsuffix "/" 

or if know they're there:

"/text/text/text/".tail.init 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -