myText <- c("# Re-loading pkgdown while it's running causes weird behaviour with # the context cache don't","# Needs to handle NA for desc::desc_get()",'# Update href of toc anchors , use "-" instead "."',"# Keep something$col or here_you::must_stay")trimws(gsub("\\s{2,}", " ", gsub("(?:\\w+::\\w+(?:\\(\\))?|\\p{L}+(?:[-'_$]\\p{L}+)*)(*SKIP)(*F)|[^\\p{L}\\s]", "", myText, perl=TRUE)))
Standard input is empty
[1] "Re-loading pkgdown while it's running causes weird behaviour with the context cache don't" [2] "Needs to handle NA for desc::desc_get()" [3] "Update href of toc anchors use instead" [4] "Keep something$col or here_you::must_stay"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!