Answers for "remove slash from regex"

0

php remove slash from string

echo preg_replace('/\\/', '', $var);
Posted by: Guest on October-18-2021
1

bash remove trailing slash

VALUE=/looks/like/a/path///

TRIMMED=$(echo $VALUE | sed 's:/*$::')

echo $VALUE $TRIMMED
Posted by: Guest on October-17-2021

Code answers related to "remove slash from regex"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language