From 7ccef1854e4672ba75835baea74ce68faeb36885 Mon Sep 17 00:00:00 2001 From: Nihar Patel Date: Tue, 15 Jul 2025 15:49:27 -0400 Subject: [PATCH] Complete Lab --- lib/regex_lab.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/regex_lab.rb b/lib/regex_lab.rb index 60552abf..77a75e7d 100644 --- a/lib/regex_lab.rb +++ b/lib/regex_lab.rb @@ -1,19 +1,19 @@ def starts_with_a_vowel?(word) - + word.match?(/\A[aeiouAEIOU]/) end def words_starting_with_un_and_ending_with_ing(text) - + text.scan(/un.*?ing/) end def words_five_letters_long(text) - + text.scan(/\b\w{5}\b/) end def first_word_capitalized_and_ends_with_punctuation?(text) - + text.match?(/^[A-Z].*[!.?]$/) end def valid_phone_number?(phone) - + phone.match?(/\A[\d\s\-\(\)]*\z/) end