perhaps should consider using some of the pcre operator here instead, if
it is common for nested brackets in comments. (does not appear to be so
far).
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@75
edb9625f-4e0d-4859-8d74-
9fd3b1da38cb
# constant case
sysreq = tolower(sysreq)
# drop version information/comments for now
# constant case
sysreq = tolower(sysreq)
# drop version information/comments for now
- sysreq = gsub('[\\([][^])]*[]\\)]','',sysreq)
+ sysreq = gsub('[[][^])]*[]]','',sysreq)
+ sysreq = gsub('\\([^)]*\\)','',sysreq)
+ sysreq = gsub('[[][^])]*[]]','',sysreq)
sysreq = gsub('version','',sysreq)
sysreq = gsub('from','',sysreq)
sysreq = gsub('[<>=]*[[:space:]]*[[:digit:]]+[[:digit:].+:~-]*','',sysreq)
sysreq = gsub('version','',sysreq)
sysreq = gsub('from','',sysreq)
sysreq = gsub('[<>=]*[[:space:]]*[[:digit:]]+[[:digit:].+:~-]*','',sysreq)