From: "Morris, Chris" Date: 2002-05-03T04:07:17+09:00 Subject: regexp help: contains only one tag def test_contains_only_a_tag re = /.*<.*>.*/ assert( ('' =~ re)) assert(!('' =~ re)) assert(!('tag' =~ re)) assert(!('' =~ re)) assert(!(' ' =~ re)) assert( (' < t a g > ' =~ re)) assert(!('a' =~ re)) end My re passes them all except the last one, which is the one I need help with. Any takers? :) Chris Morris chris.morris@snelling.com