o God.
---
From: timothy adigun <2teezp...@gmail.com>
To: *Shaji Kalidasan*
Cc: "beginners@perl.org"
Sent: Thursday, 15 August 2013 1:41 PM
Subject: Re: Help on regex
Hi,
On Thu, Aug 15, 2013 at 6:29 AM, *Sh
o with it is your gift back to
> God.
>
> ---
>
> --
> *From:* Lawrence Statton
> *To:* beginners@perl.org
> *Sent:* Wednesday, 14 August 2013 10:17 PM
> *Subject:*
ft to you. What you do with it is your gift back to God.
---
From: Lawrence Statton
To: beginners@perl.org
Sent: Wednesday, 14 August 2013 10:17 PM
Subject: Re: Help on regex
On 08/14/2013 11:26 AM, *Shaji Kalidasan* wrote:
> my ($name, $phone, $address) = /^(
On 08/14/2013 11:26 AM, *Shaji Kalidasan* wrote:
> my ($name, $phone, $address) = /^([a-zA-Z ]+):([\-\d]+):([\w, ])$/;
And here is your second problem ...
the "name" part matches.
The phone-number part matches if you either fix the numbers in the
source data, or allow — in the regexp
THe ad
On 08/14/2013 11:26 AM, *Shaji Kalidasan* wrote:
> Greetings,
The first thing I noticed -- I cut and paste your text, and many of the
characters embedded in your telephone numbers are not "-" but "—" (dash
versus mdash) which would certainly cause your regexp to fail to match
telephone numbers.
>
Hi Shaji,
On Thu, 15 Aug 2013 00:26:55 +0800 (SGT)
*Shaji Kalidasan* wrote:
> Greetings,
>
> I am trying to get name, phone and address in a lexical variable and trying
> to print it, but, I am not getting the expected output. Any help is greatly
> appreciated.
>
> [code]
> use strict;
> use w
See below
> Greetings,
>
> I am trying to get name, phone and address in a lexical variable and
> trying to print it, but, I am not getting the expected output. Any
> help is greatly appreciated.
>
> [code]
> use strict;
> use warnings;
>
> while () {
> my ($name, $phone, $address) = /^([a-z
> -Original Message-
> From: Jorge Goncalvez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: RE:help on Regex
>
>
> Hi I have this:
>
> my $ip="192.40.54.41";
>
> $ip=~ s/(\d+\.\d+)\.(\d+\.\d+)/$1\.0/;
^^^