fix example error at section Greedy vs lazy matching.

This commit is contained in:
EdgarAllanzp 2018-01-30 12:30:10 +08:00
parent ef6abcb2cf
commit 755ae62bff

View File

@ -546,7 +546,7 @@ By default regex will do greedy matching , means it will match as long as
possible. we can use `?` to match in lazy way means as short as possible
<pre>
"/(.*at)/" => <a href="#learn-regex"><strong>The fat cat sat on the mat.</strong></a> </pre>
"/(.*at)/" => <a href="#learn-regex"><strong>The fat cat sat on the mat</strong></a>. </pre>
[Test the regular expression](https://regex101.com/r/AyAdgJ/1)