From: Dan German Date: 2007-06-18T17:03:35+09:00 Subject: Re: Parsing strings come wrote: > You could try : > > url='http://www.youtube.com/watch?v=OY8AIhbqPHo' > url[/watch\?/]="" > > or with a postive lookahead : url[/watch\?(?=v=OY8AIhbqPHo)/]="" Thanks...that last expression worked well but I have one last question: I didn't realize this before but I also need to remove the equal sign after the v and replace it with a forward slash ('/') so that it looks like 'http://www.youtube.com/v/OY8AIhbqPHo' -- Posted via http://www.ruby-forum.com/.