supplose if I have a string such as
Input:
myString <- "myFunc(apple,mango,orange,banana)"
I want to make a regex such that I produce the following
Output:
myString <- "myFunc(input$apple,input$mango,input$orange,input$banana)"
How do I achieve this?
myString <- paste0("with(input, ", "myFunc(input1,input2,input3,input4)")If not what are the rule to govern insertion? Always after a(or,?