diff --git a/var/mongoose/lib/epg_search b/var/mongoose/lib/epg_search index 5b17fce..dcc6e08 100755 --- a/var/mongoose/lib/epg_search +++ b/var/mongoose/lib/epg_search @@ -79,8 +79,8 @@ if {[llength $res] > 0} { puts "Keyword Searches" foreach keyword $res { set kw [string range [lindex $keyword 1] 1 end] - # Attempt to clean the keyword string. - regsub -all {[\000-\037]} $kw "" kw + # Clean the keyword string. + regexp -nocase {^(\w+)} $kw kw puts "$kw " }