From owner-freebsd-questions Wed Dec 20 9:39:41 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 20 09:39:39 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail.beattie-home.net (219.164.200.216.fastpoint.net [216.200.164.219]) by hub.freebsd.org (Postfix) with ESMTP id D262637B400 for ; Wed, 20 Dec 2000 09:39:38 -0800 (PST) Received: from raven.pdx.beattie-home.net (raven.pdx.beattie-home.net [192.168.0.1]) by mail.beattie-home.net (Postfix) with ESMTP id 546EAACF7; Wed, 20 Dec 2000 09:46:07 -0800 (PST) Date: Wed, 20 Dec 2000 09:39:41 -0800 (PST) From: Brian Beattie X-Sender: beattie@raven.pdx.beattie-home.net To: Richard Schuder Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Replacing text with forward slash in vi In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 20 Dec 2000, Richard Schuder wrote: > Here's a tough one! > > I want to replace the two dots ``..'' with a URL address like > ``http://website.address.com'' in the following text: > > "../path/to/website/index.html" > > The vi command would be... > > :s/\../http://website.address.com s/\.\./http:\/\/website.address.com/ > > but, the two forward slashes following "http:" confuse vi's replace command. Brian Beattie | This email was produced using professional quality, beattie@beattie-home.net | standards based software. Users of Microsoft | products or other substandard software should www.beattie-home.net | contact the author about receiving a Free upgrade to | FreeBSD or Linux. "FreeBSD: The power to serve" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message