There is no quote terminating the first argument and you
need to add the backref = 0 argument so that it does
not interpret the parentheses in the regular expression
as back references.

Its not clear to me what the intention is here so there
may be further changes needed but the ones above
result in no error message.

On Tue, Oct 28, 2008 at 7:39 AM, Johannes Graumann
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I swear this used to work:
>
> library(gsubfn)
> strapply("S(AC,P)TVDK(8)EELVQK(8), ".[(].{1,2}[)]|.")[[1]]
>
> But somewhere along the update path it stopped ... now giving me this
>
> Error in base::gsub(pattern, rs, x, ...) :
>  invalid backreference 2 in regular expression
>
> Can't figure it out. What am I doing wrong?
>
> Thanks for any hints, Joh
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to