From owner-freebsd-questions Thu Feb 7 18:51:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 9729037B405 for ; Thu, 7 Feb 2002 18:51:28 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 156A32B74A; Fri, 8 Feb 2002 03:51:25 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id DC4DD247; Fri, 8 Feb 2002 13:51:12 +1100 (EST) Date: Fri, 8 Feb 2002 13:51:12 +1100 From: Edwin Groothuis To: ScaryG Cc: FreeBSD Questions Subject: Re: Perl Question about Splitting up a string Message-ID: <20020208135112.Z1599@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , ScaryG , FreeBSD Questions References: <20020207214152.1f61d855.freymann@scaryg.shacknet.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020207214152.1f61d855.freymann@scaryg.shacknet.nu>; from freymann@scaryg.shacknet.nu on Thu, Feb 07, 2002 at 09:41:52PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 07, 2002 at 09:41:52PM -0500, ScaryG wrote: > How would one go about cutting up a line like this: > > [6]joe@domain.com(10.0.0.1) $line="[6]joe@domain.com(10.0.0.1)"; $line=~/\(([\.\d]+)\)/; $ipaddress=$1; Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message