On Aug 25, 7:01 am, jwkr...@shaw.ca ("John W. Krahn") wrote:
> Honza Mach wrote:
> > Hi everybody,
>
> Hello,
>
>
>
>
>
>
>
>
>
> > I was wondering, if it is possible to use backreferences in the pattern
> > repetition bracket operator.
>
> > Consider the following string:
>
> > my $string = "5 abc
> "Honza" == Honza Mach writes:
Honza> Hi everybody,
In the subject, you mention "PCRE". Are you actually using PCRE, and
not Perl? If so, this mailing list isn't for you, because PCRE is
misnamed: it isn't Perl, and it's not even Perl Compatible. This mailing
list will likely give you Per
Honza Mach wrote:
Hi everybody,
Hello,
I was wondering, if it is possible to use backreferences in the pattern
repetition bracket operator.
Consider the following string:
my $string = "5 abcdefghijklmn";
The number five at the beginning of the string means, that I want to
extract first fiv
Hi,
On Thu, 2011-08-25 at 12:54 +0200, Paul Johnson wrote:
> On Thu, Aug 25, 2011 at 12:02:37PM +0200, Honza Mach wrote:
> > Hi,
> >
> > On Thu, 2011-08-25 at 11:35 +0200, Paul Johnson wrote:
> > >
> > > say "extracted: ", /^(\d+\s+.{$len})/ if ($len) = /^(\d+)/
> > > Sometimes two passes are
On Thu, Aug 25, 2011 at 12:02:37PM +0200, Honza Mach wrote:
> Hi,
>
> On Thu, 2011-08-25 at 11:35 +0200, Paul Johnson wrote:
> >
> > say "extracted: ", /^(\d+\s+.{$len})/ if ($len) = /^(\d+)/
> > Sometimes two passes are are better than one.
> >
>
> Thank you for your advice, however I wanted
Hi,
On Thu, 2011-08-25 at 11:35 +0200, Paul Johnson wrote:
> > > On Thu, 25 Aug 2011 10:42:20 +0200
> > > Honza Mach wrote:
> > >
> > > > Hi everybody,
> > > >
> > > > I was wondering, if it is possible to use backreferences in the pattern
> > > > repetition bracket operator.
> > > >
> > > > C
> > On Thu, 25 Aug 2011 10:42:20 +0200
> > Honza Mach wrote:
> >
> > > Hi everybody,
> > >
> > > I was wondering, if it is possible to use backreferences in the pattern
> > > repetition bracket operator.
> > >
> > > Consider the following string:
> > >
> > > my $string = "5 abcdefghijklmn";
>
Hi Schlomi,
thank you so much for such a quick response.
On Thu, 2011-08-25 at 11:56 +0300, Shlomi Fish wrote:
> ׁHi Honza,
>
> On Thu, 25 Aug 2011 10:42:20 +0200
> Honza Mach wrote:
>
> > Hi everybody,
> >
> > I was wondering, if it is possible to use backreferences in the pattern
> > repeti
ׁHi Honza,
On Thu, 25 Aug 2011 10:42:20 +0200
Honza Mach wrote:
> Hi everybody,
>
> I was wondering, if it is possible to use backreferences in the pattern
> repetition bracket operator.
>
> Consider the following string:
>
> my $string = "5 abcdefghijklmn";
>
> The number five at the beginn
Charles K. Clarkson wrote:
WC -Sx- Jones <[EMAIL PROTECTED]> wrote:
:
: PCRE 4.5 revisited :(
What's PCRE 4.5?
pcre.org - PCRE 4.5 is the latest Perl Code Regular Expression extension
which can be "compiled" into other systems -- to allow such systems to
use Perl-like R/Es -- but it isn't
WC -Sx- Jones wrote:
What I was shooting for -
/213\.37\.(?:150...251)\.(?:0...255)/
Hell, for that matter - what is the proper syntax for:
#! /usr/local/bin/perl -w
use strict;
use warnings;
my ($first, $second, $third, $fourth, $x, $ip) = (213, 37, 150, 0);
$ip = "$first.$second.$third.$fourth
WC -Sx- Jones <[EMAIL PROTECTED]> wrote:
:
: PCRE 4.5 revisited :(
What's PCRE 4.5?
: I am trying to reduce this into something "smaller/shorter" -
:
/213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0-1]\.\
d{1,3}/
Let's break it down:
/
213\.
37\.
(?:
Randy stated:
> /213\.37\.(?:1[5-9][0-9]|2(?:[1-4][0-9]|5[0-1]))\.\d{1,3}/
Thanks. I guess the Range Operator .. ...
still doesn't work inside R/Es
What I was shooting for -
/213\.37\.(?:150...251)\.(?:0...255)/
LOL :)
Bill
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
On 4/17/2004 11:59 AM, WC -Sx- Jones wrote:
WC -Sx- Jones wrote:
PCRE 4.5 revisited :(
I am trying to reduce this into something "smaller/shorter" -
/213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0-1]\.\d{1,3}/
Sorry - I don't mean to be vague. I normally would use a
WC -Sx- Jones wrote:
PCRE 4.5 revisited :(
I am trying to reduce this into something "smaller/shorter" -
/213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0-1]\.\d{1,3}/
Sorry - I don't mean to be vague. I normally would use a CIDR to match:
# 213.37.150.0 - 213.37.251.255
On Apr 17, 2004, at 10:10 AM, WC -Sx- Jones wrote:
PCRE 4.5 revisited :(
I am trying to reduce this into something "smaller/shorter" -
/213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0
-1]\.\d{1,3}/
Obviously I am brain dead =/ I have tried -
/213\.37\.[150-251]\.[0-255
On 4/17/2004 11:10 AM, WC -Sx- Jones wrote:
PCRE 4.5 revisited :(
I am trying to reduce this into something "smaller/shorter" -
/213\.37\.(?:(?:(?:1(?:[5-9][0-9])|(?:2(?:0|1|2|3|4)[0-9])|(?:25[0-1]\.\d{1,3}/
Obviously I am brain dead =/ I have tried -
/213\.37\.[150-251]\.[0-255]/or
[PMFJI] Following up to my own post -
On Sunday, June 1, 2003, at 07:58 PM, WC -Sx- Jones wrote:
/(37.3,200)/; # matches any number x, 37.3 < x < 200
/((37.3,200))/; # matches any number x, 37.3 < x < 200 and
saves it
...
But I cannot seem to get the simple test case working
18 matches
Mail list logo