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 = '(?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) != -1)
> works, but it does not match "J. TEST".
> It does match "J. Test" correctly.
>
> I have the feeling I'm not reading the documentation
> good enough, but cannot seem to figure this out, sorry.
>
> Thanks in advance,
> JeeBee.