From owner-freebsd-questions Wed Dec 20 4:43:36 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 20 04:43:34 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 4DE6C37B400 for ; Wed, 20 Dec 2000 04:43:34 -0800 (PST) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 148iaj-0003Qv-00; Wed, 20 Dec 2000 12:43:33 +0000 To: "Richard Schuder" , From: Cliff Sarginson Subject: Re: Replacing text with forward slash in vi Date: Wed, 20 Dec 2000 12:43:33 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.24.58 Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 > > but, the two forward slashes following "http:" confuse vi's replace command. > > Any ideas? > > use another delimiter, and eascape both "."s try ... :s;\.\.;http://website.address.com; Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message