Guest User

Untitled

a guest
Mar 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. sentence <-
  2. "active ingredients: avobenzone, octocrylene, octyl salicylate.
  3. other stuff inactive ingredients: water, glycerin, edta."
  4.  
  5. "avobenzone, octocrylene, octyl salicylate, water, glycerin, edta."
  6.  
  7. gsub("([:punct:][^:]*:)|^([^:]*:)", "", sentence)
  8.  
  9. [1] " avobe water, glycerin, edta."
Add Comment
Please, Sign In to add comment