Microsoft® Visual Basic® Scripting Edition 
IgnoreCase Property
 Language Reference 
Version 5 

See Also                  Applies To


Description
Sets or returns a Boolean value that indicates if a pattern search is case-sensitive or not.
Syntax
object.IgnoreCase [= True | False ]

The object argument is always a RegExp object. The value of the IgnoreCase property is False if the search is case-sensitive, True if it is not. Default is True.

Remarks
The following code illustrates the use of the IgnoreCase property (change the value assigned to IgnoreCase property to see its effect):
Function RegExpTest(patrn, strng)
  Dim regEx					' Create variable.
  Set regEx = New RegExp			' Create regular expression.
  regEx.Pattern = patrn			' Set pattern.
  regEx.IgnoreCase = True			' Set case-insensitivity.
  RegExpTest = regEx.Execute(strng)	' Execute search.
End Function

MsgBox(RegExpTest("is.", "IS1 is2 IS3 is4"))