Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sentence <-
- "active ingredients: avobenzone, octocrylene, octyl salicylate.
- other stuff inactive ingredients: water, glycerin, edta."
- "avobenzone, octocrylene, octyl salicylate, water, glycerin, edta."
- gsub("([:punct:][^:]*:)|^([^:]*:)", "", sentence)
- [1] " avobe water, glycerin, edta."
Add Comment
Please, Sign In to add comment