From 5c5082aeb51f17ee2f380cb60fe54c1a9bd95e39 Mon Sep 17 00:00:00 2001 From: Igor Irianto Date: Sat, 6 Feb 2021 08:47:36 -0800 Subject: [PATCH] add a heading for greedy vs non-greedy --- ch12_search_and_substitute.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ch12_search_and_substitute.md b/ch12_search_and_substitute.md index 8643040..732544f 100644 --- a/ch12_search_and_substitute.md +++ b/ch12_search_and_substitute.md @@ -566,7 +566,9 @@ strawberry sweetcake blueberry hotdog ``` -You can also substitute the nth match in a line with this trick: +## Greedy And Non-Greedy + +You can substitute the nth match in a line with this trick: ``` One Mississippi, two Mississippi, three Mississippi, four Mississippi, five Mississippi.