<blockquote>
<p>Hmm, ah, so the main purpose for single line matching is to save memory</p>
</blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=306953" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Johndeep">@Johndeep</a>, I don't think that's the (main) reason, just a side-effect. According to the PR I linked above, where it was implemented:</p>
<blockquote>
<p>This is the "simple" version of regular expressions, where it cannot match newlines characters in the middle of the expression. This is the behavior of most CLI tools, like grep or sed. Notably a negative range (like [^s]) won't match a newline.</p>
</blockquote>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1588?email_source=notifications&email_token=AAIOWJZDK52T7TCSVVWKT23PXBSG7A5CNFSM4DYICKN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGVOCI#issuecomment-495802121">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZETKQCWC5QY2EMVBDPXBSG7ANCNFSM4DYICKNQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4BSKGVXET6MPICBITPXBSG7A5CNFSM4DYICKN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGVOCI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1588?email_source=notifications\u0026email_token=AAIOWJZDK52T7TCSVVWKT23PXBSG7A5CNFSM4DYICKN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGVOCI#issuecomment-495802121",
"url": "https://github.com/geany/geany/issues/1588?email_source=notifications\u0026email_token=AAIOWJZDK52T7TCSVVWKT23PXBSG7A5CNFSM4DYICKN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGVOCI#issuecomment-495802121",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>