From this API:
MULTILINE
public static final int MULTILINEEnables multiline mode. In multiline mode the expressions
^and$match just after or just before, respectively, a line terminator or the end of the input sequence. By default these expressions only match at the beginning and the end of the entire input sequence.Multiline mode can also be enabled via the embedded flag expression
(?m).
Can anybody make a real life code example of the difference of having a Pattern created with Pattern.MULTILINE and with standard settings?
The boundary matcher ^ as default should match the beginning of the line and $ the end of the line as this tutorial explaines.
What does it change by using the Pattern.MULTILINE?