RegExOptions.LineEndType

From Xojo Documentation

Property (As Integer )
aRegExOptions.LineEndType = newIntegerValue
or
IntegerValue = aRegExOptions.LineEndType

Supported for all project types and targets.

Changes the way \n is expanded for ReplacementPatterns. It is in effect for the current Regular Expression "session."

Notes

This property has no effect on SearchPatterns if TreatTargetAsOneLine is True.

LineEndType can take on the following values:

Value Description
0 Any line ending (Windows, Macintosh, or Unix). This is the default.
1 The default for the current platform. If running on Macintosh, the same as 2; if running on Windows, the same as 3, if running on Linux, the same as 4.
2 Mac ASCII 13 or \r
3 Win32 ASCII 10 or \n
4 Unix ASCII 10 or \n