R: Trim something other than whitespace

trim_anything {filesstrings} | R Documentation

## Trim something other than whitespace

### Description

See `strex::str_trim_anything()`.

### Usage

    trim_anything(string, pattern, side = "both")

    str_trim_anything(string, pattern, side = "both")

### Arguments

`string` | A character vector.
`pattern` | A string. The pattern to be trimmed (not interpreted as regular expression). So to trim a period, use `char = "."` and not `char = "\\."`).
`side` | Which side do you want to trim from? `"both"` is the default, but you can also have just either `"left"` or `"right"` (or optionally the shortened `"b"`, `"l"` and `"r"`).

[Package filesstrings version 3.1.0 Index]