Method RegEx():setIgnoreCase() Foundation

Sets case-insensitive matching mode.

Syntax
:setIgnoreCase( [<lIgnore>] ) --> self
Parameters
<lIgnore>
Set to .T. (true) to enable case-insensitivity. A value of .F. (false) disables the feature, causing matches to occur only for similar casing. Defaults to .T.
Return

This method returns self.

Description

Configures the pattern assigned to the RegEx object to ignore case differences when matching.

Test

oRegEx := RegEx():create("hello"):setIgnoreCase() 
? oRegEx:test("HELLO")  // .T. 
oRegEx:destroy() 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.