From bd68ef1a1eedfa886a754153932df9952ddf250e Mon Sep 17 00:00:00 2001 From: Jen Kelly Date: Thu, 17 Jul 2025 13:52:03 -0400 Subject: [PATCH 1/2] Return an array with the words starting with 'un' and ending with 'ing' --- lib/regex_lab.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/regex_lab.rb b/lib/regex_lab.rb index 60552abf..8456fcdb 100644 --- a/lib/regex_lab.rb +++ b/lib/regex_lab.rb @@ -1,9 +1,9 @@ def starts_with_a_vowel?(word) - + word.match?(/\A[aeiou]/i) end def words_starting_with_un_and_ending_with_ing(text) - + text.scan(/\bun\w*ing\b/) end def words_five_letters_long(text) From a273cc001597e5f40419fcb31092c98956bc91de Mon Sep 17 00:00:00 2001 From: Jen Kelly Date: Thu, 17 Jul 2025 13:56:54 -0400 Subject: [PATCH 2/2] Return an array of words that are five letters long --- lib/regex_lab.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/regex_lab.rb b/lib/regex_lab.rb index 8456fcdb..7fd8500b 100644 --- a/lib/regex_lab.rb +++ b/lib/regex_lab.rb @@ -7,6 +7,7 @@ def words_starting_with_un_and_ending_with_ing(text) end def words_five_letters_long(text) + text.scan(/\b\w{5}\b/) end