formatting

This commit is contained in:
Julian von Gebhardi 2023-01-15 20:51:10 +01:00
parent 9acaf669ef
commit 8382e0b33d

View File

@ -593,12 +593,12 @@ possible. We can use `?` to match in a lazy way, which means the match should be
This becomes even more useful when using the global flag.
<pre>
"/(.*at)/" => <a href="#learn-regex">The <strong>fat cat</strong> sat on the mat and another fat cat<strong> got jealous.</strong></a>. </pre>
"/(.*at)/" => The <a href="#learn-regex"><strong>fat cat</strong></a> sat on the mat and another fat cat<a href="#learn-regex"><strong> got jealous.</strong></a>. </pre>
Without using this the <pre>?</pre> to match in a lazy way it would look like this.
Without using this the `?` to match in a lazy way it would look like this.
<pre>
"/(.*at)/" => <a href="#learn-regex">The <strong>fat cat sat on the mat and another fat cat got jealous.</strong></a>. </pre>
"/(.*at)/" => The <a href="#learn-regex"><strong>fat cat sat on the mat and another fat cat</strong></a> got jealous.</pre>
[Test the regular expression](https://regex101.com/r/AyAdgJ/2)