ruby-uebungen/Assignment_030/solution
Thomas Smits fe2c1c6eb6 Update of exercises 2023-05-25 17:47:19 +02:00
..
readme.md Update of exercises 2023-05-25 17:47:19 +02:00

readme.md

Lösung: Reguläre Ausdrücke: Match





























































```ruby def tag?(text) !!(/^<.*?>$/ =~ text) end

tag?("") # -> true tag?("hugo ") # -> false tag?("<a href='xx'") # -> false tag?("

") # -> true tag?("<p") # -> false tag?("p>") # -> false