Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2002 13:51:12 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        ScaryG <freymann@scaryg.shacknet.nu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Perl Question about Splitting up a string
Message-ID:  <20020208135112.Z1599@k7.mavetju.org>
In-Reply-To: <20020207214152.1f61d855.freymann@scaryg.shacknet.nu>; from freymann@scaryg.shacknet.nu on Thu, Feb 07, 2002 at 09:41:52PM -0500
References:  <20020207214152.1f61d855.freymann@scaryg.shacknet.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020208135112.Z1599>