Skip to content

Commit b2ff220

Browse files
committed
str_replace can't replace boundaries
Fixes #210
1 parent c54f5cb commit b2ff220

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

R/replace.r

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
#' Vectorised over `string`, `pattern` and `replacement`.
44
#'
55
#' @inheritParams str_detect
6+
#' @param pattern Pattern to look for.
7+
#'
8+
#' The default interpretation is a regular expression, as described
9+
#' in [stringi::stringi-search-regex]. Control options with
10+
#' [regex()].
11+
#'
12+
#' Match a fixed string (i.e. by comparing only bytes), using
13+
#' [fixed()]. This is fast, but approximate. Generally,
14+
#' for matching human text, you'll want [coll()] which
15+
#' respects character matching rules for the specified locale.
616
#' @param replacement A character vector of replacements. Should be either
717
#' length one, or the same length as `string` or `pattern`.
818
#' References of the form `\1`, `\2`, etc will be replaced with

man/str_replace.Rd

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)