Thread: Case insensitive equality operator

Case insensitive equality operator

From
Christophe Labouisse
Date:
I'm looking for a case insensitive equality operator (something like
~~*). There are of course regular expression matches but I am
reluctent to use them because I need to preprocess my string before
using it (putting it between a ^ and a $, escaping special characters)
and because I'm afraid that the use of regular expressions will be
more resource demanding than a simple equality.

Any ideas ?

Cheers

Christophe Labouisse : Cinéma, typographie, Unix
labouiss@club-internet.fr http://gabuzo.home.ml.org/
Le cinéma en Lumière : http://www.lumiere.org/