0

If

^
matches the beginning of a line and
</pre></div><!-- /wp:codemirror-blocks/code-block --> matches the end of a line, then why doesn't <!-- wp:codemirror-blocks/code-block {"showPanel":false,"languageLabel":"no","mode":"clike","mime":"text\/x-c++src"} --> 				<div class="wp-block-codemirror-blocks-code-block code-block"><pre>^
match the beginning AND end of a string like the one in the title?

How do you make such a regex that matches a string like this:

"Starts with

s
and ends with
s
."