<html><head></head><body><div>Dear list,</div><div><br></div><div>The <a href="https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/util/regex/Pattern.html">Pattern Javadoc</a> does not specify whether “Any character” includes line terminators in “Any character except <code>a</code>, <code>b</code>, or <code>c</code> (negation)” ([^abc]) or “Any character except one in the Greek block (negation)” (\P{InGreek}), or whether it depends on DOTALL or MULTILINE being set.</div><div><br></div><div>As a result, it seems to me impossible from the doc to deduce, for example, whether the Pattern "[^a]" will match a line terminator (spoiler alert: <a href="https://onecompiler.com/java/42nuaa4bd">it does</a>). <a href="https://stackoverflow.com/questions/64383917/">This discussion</a> illustrates the confusion.</div><div><br></div><div>Would an addition to the doc be considered?</div><div><br></div><div><span></span></div></body></html>