text=c("I will add [USER=1234]@banana1[/USER] to the chat" gsub("\\[user.*?/user]","usermention",text, ignore.case=TRUE) ## => [1] "I will add usermention to the chat"
Standard input is empty
Standard output is empty
Error: unexpected symbol in:
"text=c("I will add [USER=1234]@banana1[/USER] to the chat"
gsub"
Execution halted