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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -