Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/regex_lab.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
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)
text.scan(/\b\w{5}\b/)

end

Expand Down