fork download
  1. text <- "[76][note 7] just like traditional Hinduism regards the Vedas "
  2. trimws(gsub("\\[[^]]+]", "", text))
  3. trimws(gsub("\\[(?:[[:alnum:]]+[[:blank:]]*)?[0-9]+]", "", text))
Success #stdin #stdout 0.22s 79168KB
stdin
Standard input is empty
stdout
[1] "just like traditional Hinduism regards the Vedas"
[1] "just like traditional Hinduism regards the Vedas"