From owner-freebsd-questions Thu Feb 7 18:43:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by hub.freebsd.org (Postfix) with ESMTP id F3F5B37B405 for ; Thu, 7 Feb 2002 18:43:33 -0800 (PST) Received: from scaryg.shacknet.nu ([64.231.135.73]) by tomts6-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020208024333.IGQR27465.tomts6-srv.bellnexxia.net@scaryg.shacknet.nu> for ; Thu, 7 Feb 2002 21:43:33 -0500 Received: from localhost ([::1] helo=scaryg.shacknet.nu) by scaryg.shacknet.nu with smtp (Exim 3.33 #1) id 16Z0z2-000F5v-00 for freebsd-questions@freebsd.org; Thu, 07 Feb 2002 21:41:52 -0500 Date: Thu, 7 Feb 2002 21:41:52 -0500 From: ScaryG To: FreeBSD Questions Subject: Perl Question about Splitting up a string Message-Id: <20020207214152.1f61d855.freymann@scaryg.shacknet.nu> X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 How would one go about cutting up a line like this: [6]joe@domain.com(10.0.0.1) to get just the IP number at the end in Perl?? My pattern matching skills lack, as you can tell, but I did manage to strip all the other junk out of the line and be left with just this chunk. Suggestions? gf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message