[R] case insensitive regular expression

2006-06-05 Thread JeeBee
Can anybody fix the following, to match a string disregarding case? I tried: with(my.data.frame, regexpr(pattern = '(?i)J\. Test', text=TARGET_COLUMN), perl=T) != -1) R yields: invalid regular expression with(my.data.frame, regexpr(pattern = 'J\. Test', text=TARGET_COLUMN), perl=T) !=

Re: [R] case insensitive regular expression

2006-06-05 Thread JeeBee
Found the problem already. Without the 'with' it works, so I know where to look for the problem now. Thanks anyways, JeeBee. On Mon, 05 Jun 2006 15:16:34 +0200, JeeBee wrote: Can anybody fix the following, to match a string disregarding case? I tried: with(my.data.frame, regexpr(pattern