How to delete a line which starts with a * using regex in R -


i using regex in r delete line starts * such as:

* wikipedia started public domain version reprinted [http://www.ccel.org/ christian classics ethereal library].   * james william richard (1898). [[internet archive]]. * [http://www.melanchthon.de/e/ phillip melanchthon quinquennial] 

and tried use function gsub , regex expression like:

gsub("^[\\*]+[\\s\\[a-za-z,;'\"\\s]+[.?!\\]]$","",tex1) 

but nothing happened. please me figure out problem expression?

to delete line starts *

sub("(?m)^\\*.*\n?", "", x, perl=t) 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -