I have a df:
df <- c("hello goodbye Delete Me", "Another Sentence good program", "hello world The End")
I want this:
c("hello goodbye", "good program", "hello world")
I have tried:
df <- grep("^[A-Z]", df, invert = TRUE, value = TRUE)
but this deletes the entire character that starts with a capital letter:
c("hello goodbye Delete Me", "hello world The End")
How do I do this?