From: Simon Strandgaard Date: 2006-12-27T19:27:59+09:00 Subject: Re: reg exp comparison hanging irb On 12/27/06, gaurav bagga wrote: > hi simon, > thanks for reply > so whats the way out i am not used to reg exp that much > some one helped me with reg exp that i posted > as a single entry might stop the things to work.... do you want to do a rough validation of the entire url? or do you want to check only the beginning? try this one /^(https?:\/\/)?\w+([-._=&+\/?#]\w+)+$/i -- Simon Strandgaard http://opcoders.com/