From: Assaph Mehr Date: 2005-03-17T14:14:46+09:00 Subject: Re: regex question > match_data = line.match(/regular expression/) > unless match_data[1].nil? careful, match_data can be nil itself if there was no match.