diff --git a/lib/regex_lab.rb b/lib/regex_lab.rb index 60552abf..6680d7b9 100644 --- a/lib/regex_lab.rb +++ b/lib/regex_lab.rb @@ -1,19 +1,19 @@ def starts_with_a_vowel?(word) - + !!word.match(/^[aeiouAEIOU]/) end def words_starting_with_un_and_ending_with_ing(text) - + text.scan(/\bun\w+ing\b/) end def words_five_letters_long(text) - + text.scan(/\b[a-zA-Z]{5}\b/) end def first_word_capitalized_and_ends_with_punctuation?(text) - + !!text.match(/^[A-Z].+\W$/) end def valid_phone_number?(phone) - + !!phone.match(/[0-9]{3}.*[0-9]{3}.*[0-9]{4}/) end