From: "semmons99@..." Date: 2006-02-22T22:38:31+09:00 Subject: Re: A regexp for an include? method What about using: data.match(/TC_TP/) should return nil if it doesn't match, otherwise returns the matching string.