Method RegEx():setDotAll() Foundation

Sets dot-all mode.

Syntax
:setDotAll( [<lDotAll>] ) --> self
Parameters
<lDotAll>
Set to .T. (true) to enable dot-all mode. A value of .F. (false) disables the feature. Defaults to .T.
Return

This method returns self.

Description

In dot-all mode (also called single-line mode), the dot metacharacter matches any character including the newline characters. By default, the dot metacharacter does not match newline characters.

Set dot-all mode

oRegEx := RegEx():create("START.*END"):setDotAll() 
? oRegEx:test("START" + Chr(10) + "middle" + Chr(10) + "END")  // .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.