R/replaceExpressions.PlainTextDocument.R

Defines functions replaceExpressions.PlainTextDocument

Documented in replaceExpressions.PlainTextDocument

#' Internal expression replacement with grep
#'
#' @param x pattern
#'
#' @export

replaceExpressions.PlainTextDocument <- function(x){
	x <- gsub("-", " ", x, ignore.case =FALSE, fixed = TRUE)
	x <- gsub(".", "\n", x,ignore.case = FALSE, fixed = TRUE)
	x <- gsub("_", "\n", x,ignore.case = FALSE, fixed = TRUE)
	return(x) 
}
Chris1221/goldi documentation built on May 6, 2019, 11:19 a.m.