From: "Jesús Gabriel y Galán" Date: 2011-04-16T05:50:38+09:00 Subject: Re: Extract a range i.e. svr[100..130] ? On Fri, Apr 15, 2011 at 8:40 PM, Richard Sandoval wrote: > undefined method `match' for ["svr[100..103].domain.local"]:Array > (NoMethodError) This is because you don't have a string, you have an array. If you have that value for example in params[:hostname], try this: a = params[:hostname].first and then the rest of my solution. Jesus.