[EMAIL PROTECTED] (Perl-Krackedpress) writes:
> // check the email fields for validity
> "^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$"
That will invalidate lots of proper email addresses. For example
anything in the .info domain.
For example [EMAIL PROTECTED] is also a valid em
Zentara wrote:
> On Mon, 19 Aug 2002 12:07:21 -0700, [EMAIL PROTECTED] (Root) wrote:
>>for a one liner:
>>
>>$_ = '12.34.56.78';
>>map {$_ < 256} /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g || warn("not valid ip:
>>$_\n");
>>
>
> I tried this with $_ = '1234.2345.56.78'; and received no warning.
> That's n
t; Gesendet am: Dienstag, 20. August 2002 15:35
> > An: Nikola Janceski
> > Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> > Betreff: Re: AW: how to make a regex for a ip address
> >
> > wouldn't match 0.0.0.0 ;)
> > oy vey, when will it be figured out
&
yes, correctly
> -Ursprüngliche Nachricht-
> Von: Mat Harris [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 20. August 2002 16:07
> An: Angerstein
> Cc: [EMAIL PROTECTED]
> Betreff: Re: AW: how to make a regex for a ip address
>
> the addresses x.x.x.255 and
hehehehehe)
try ping 0.0.0.0 in windows for example
> -Ursprüngliche Nachricht-
> Von: Samy Kamkar [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 20. August 2002 15:35
> An: Nikola Janceski
> Cc: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Betreff: Re: AW
}|[1-9]{1,2})$/
>
> shortened from stephen's just a bit.
>
>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, August 20, 2002 9:17 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: AW: how to make a regex for a ip address
r [mailto:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 20. August 2002 15:02
> An: Angerstein
> Cc: [EMAIL PROTECTED]
> Betreff: Re: AW: how to make a regex for a ip address
>
> /^(?:0*(?:2(?:[0-4]\d|5[0-5])|1?\d{1,2})(?:\.|$)){4}/
>
> -Samy
>
> Angerstein wrote:
>
August 20, 2002 9:28 AM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: AW: how to make a regex for a ip address
>
>
> /^(?:(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[1-9]{1,2})\.){3}(25[0
> -5]|2[0-4][0-9
> ]|[0-1][0-9]{2}|[1-9]{1,2})$/
>
> shortened f
[EMAIL PROTECTED]
> Subject: RE: AW: how to make a regex for a ip address
>
>
> /^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]
> )\.(25[0-5]|2[
> 0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]
> |2[0-4][0-9]|[
> 0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|
amkar'; 'Angerstein'
Cc: '[EMAIL PROTECTED]'
Subject: RE: AW: how to make a regex for a ip address
oh and anything else after that last .
000255.000255.000255.000255.slkfdja;ljd;alkjf;lajkd;ljkasfljka;ljdkf;lajsdl;
jkf;lsajd
> -Original Message-
> From: Nikola Janceski
TECTED]
> Subject: RE: AW: how to make a regex for a ip address
>
>
> But that would match
>
> 000255.000255.000255.000255.
>
> hehehe :)
>
> I like the split loop check.
>
> > -Original Message-
> > From: Samy Kamkar [mailto:[EMAIL PRO
\./);
> > foreach $part (@ip) {
> > if ( $part > 255 && $part =~ /\d?\d?\d\/ ) {
> > die "That´s not an IP";
> > }
> > }
> >
> >
> >>-Ursprüngliche Nachricht-
> >>Von: [EMAIL PROTECTED] [mailto:[EMAIL PR
t; die "That´s not an IP";
> }
> }
>
>
>>-Ursprüngliche Nachricht-
>>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
>>zentara
>>Gesendet am: Dienstag, 20. August 2002 14:50
>>An: [EMAIL PROTECTED]
>>B
er.. see correction
> -Original Message-
> From: Angerstein [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: AW: how to make a regex for a ip address
>
>
> What about:
> /\d?\d?\d\.\d?\d?\d\.\d?\d?\d\.\d
mailto:[EMAIL PROTECTED]]Im Auftrag von
> zentara
> Gesendet am: Dienstag, 20. August 2002 14:50
> An: [EMAIL PROTECTED]
> Betreff: Re: how to make a regex for a ip address
>
> On Mon, 19 Aug 2002 12:07:21 -0700, [EMAIL PROTECTED] (Root) wrote:
> >for a one liner:
> &
On Mon, 19 Aug 2002 12:07:21 -0700, [EMAIL PROTECTED] (Root) wrote:
>for a one liner:
>
>$_ = '12.34.56.78';
>map {$_ < 256} /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g || warn("not valid ip: $_\n");
>
I tried this with $_ = '1234.2345.56.78'; and received no warning.
That's not good.
--
To unsubscribe,
.
Rgds,
Connie
- Original Message -
From: "alex chen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 18, 2002 11:14 PM
Subject: how to make a regex for a ip address
> hi,
> i am a beginners in perl.i am studying perl regex now ,and i want to
From: perl-Krackedpress [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 18, 2002 9:12 PM
To: Janek Schleicher
Cc: [EMAIL PROTECTED]
Subject: Re: how to make a regex for a ip address
I hope you have a good REF. for regex commands
O'Reilly's series book is the best I am told.
I do
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 18, 2002 1:24 PM
Subject: Re: how to make a regex for a ip address
> Alex Chen wrote at Sun, 18 Aug 2002 17:14:21 +0200:
>
> > i am a beginners in perl.i am studying perl regex now ,and i want to
know
> > how to make a regex f
Alex Chen wrote at Sun, 18 Aug 2002 17:14:21 +0200:
> i am a beginners in perl.i am studying perl regex now ,and i want to know
> how to make a regex for a ip address.
Have a look to the
Regexp::Common
module from the CPAN.
$RE{net}{IPv4} contains the regexp to match an ip address.
hi,
i am a beginners in perl.i am studying perl regex now ,and i want to know
how to make a regex for a ip address.
thank you!!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
21 matches
Mail list logo