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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -