Returns a 1 if the text is matched by the regular expression defined by pattern, otherwise returns 0. This function differs from its counterpart, %ereg(), in that the matching is performed in a case-insensitive fashion. This function uses the POSIX extended regular expression syntax which is beyond the scope of this document and is left to the reader. The internet should yield many valuable resources about this topic.
Example:
if( %eregi( ".*troll.*", %getRace( @n ) ) { echoto char AH-HAH! A stinky troll! } endif |