tags:

views:

89

answers:

2

In Javascript, I just need to append a i to the regexp to make it case-insensitive. In .NET, I use a RegexOptions.IgnoreCase.

I know about case-fold-search. What I want is to specify that behavior in the regex itself, as specified in an elisp program. Possible?

A: 

AFAIK - not possible. Probably not the answer one wants to hear, but Emacs Lisp's regex support is far from great(read great as Perl)...

Bozhidar Batsov
+2  A: 

As someone said earlier, the way to control this is to bind case-fold-search. There is no way to specify the regex's case-sensitivity (or lack thereof) in the regex itself.

As it happens, regexp matching is already case-insensitive by default.

offby1