ReplaceRepeatedSlashes: ReplaceRepeatedSlashes

View source: R/Stringendo.R

ReplaceRepeatedSlashesR Documentation

ReplaceRepeatedSlashes

Description

ReplaceRepeatedSlashes replaces multiple consecutive slashes with a single slash.

Usage

ReplaceRepeatedSlashes(string)

Arguments

string

The string (file path) potentially having repeated slashes.

Value

A string with repeated slashes replaced by a single slash.

Examples

ReplaceRepeatedSlashes(string = "path//to//folder")

vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.