Skip to contents

Remove Leading Slashes of Strings

Usage

removeLeadingSlashes(x)

Arguments

x

vector of character

Value

modified version of x with all leading slashes in all elements of x removed

Examples

removeLeadingSlashes(c("a", "/b", "//c"))
#> [1] "a" "b" "c"