Method RegEx():setDotAll() Foundation
Sets dot-all mode.
:setDotAll( [<lDotAll>] ) --> self
This method returns self.
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()
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.