fork download
  1. ad<-c("Pl. find the Vehicle Details : Volvo needs to be repaired","The vehicle number : 4570d having the Vehicle Details : scania_z should be altered")
  2. gsub("Vehicle Details\\s*:\\s*\\w+","",ad)
  3. gsub("Vehicle Details\\s*:\\s*\\S+","",ad)
Success #stdin #stdout 0.26s 39216KB
stdin
Standard input is empty
stdout
[1] "Pl. find the  needs to be repaired"                      
[2] "The vehicle number : 4570d having the  should be altered"
[1] "Pl. find the  needs to be repaired"                      
[2] "The vehicle number : 4570d having the  should be altered"