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 -

c# - Update a combobox from a presenter (MVP) -

android - Unable to generate FCM token from dynamically instantiated Firebase -