RegExpr.LineSeparators to specify which characters will be treated as line separators. Single-character line separators are used mainly on Unix-like operating systems. To get or set a double-character line separator use the
The default value is a carriage return (\r) and a newline (\n) -- or --
|RegExprObj||An expression, variable or parameter that specifies a reference to a RegExpr object|
The property is applied to the following object:
The string that contains characters treated as line breaks.
The ^ metacharacter matches the start of the input text and if multi-line mode is enabled, it also matches after each line break.
The $ metacharacter matches the end of the input text and if multi-line mode is enabled, it also matches before every line break.
The . metacharacter matches any character and if single-line mode is disabled, it does not match a line break.
Depending on the operating system, a line break could contain only one character (Unix) or a pair of characters (DOS/Windows). Characters that are treated as line breaks are defined by the
RegExpr.LinePairedSeparator property respectively.
The following sample specifies a new character to be treated as a line break and posts a line separated by the character to the test log.