Q:

R regexp ignore.case and fixed dont work together

I would like to use regexpr("Hello :)","hello :)",fixed=TRUE,ignore.case=TRUE)
but R ignores the ignore.case
Is this possible in R?
Thankyou,

A:

It's supposed to do that.  From ?regexpr
fixed: logical.  If ‘TRUE’, ‘pattern’ is a string to be matched as
      is.  Overrides all conflicting arguments.

Case-insensitive is certainly a conflicting argument.
This works: use a lower-case pattern, and convert the to-be-matched string to lower case:
regexpr("hello :)", tolower("Hello :)"),fixed=TRUE)

