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
Post a Comment