Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > regular expression help with apostrophe

Reply
Thread Tools

regular expression help with apostrophe

 
 
Paul Lalli
Guest
Posts: n/a
 
      03-16-2005

"Ted Zlatanov" <> wrote in message
news:...
> This example does not have anything to do with the $1...$9 variables.
> There are only 9 of them,


Who on earth told you that?

#!/usr/bin/perl
use strict;
no strict 'refs';
use warnings;

$_ = join '', 'a'..'z';
/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(. )(.)(.)(.)(.)(.)(.)(.
)(.)(.)/;
for (1..26){
print "${$_}\n";
}
__END__


Paul Lalli

 
Reply With Quote
 
 
 
 
Ted Zlatanov
Guest
Posts: n/a
 
      03-16-2005
On Wed, 16 Mar 2005, wrote:

> "Ted Zlatanov" <> wrote in message
> news:...
>> This example does not have anything to do with the $1...$9 variables.
>> There are only 9 of them,

>
> Who on earth told you that?


In my defense, there ARE only 9 of the $1 ... $9 variables

But yes, my mistake. Sorry. It was too early in the morning.

Ted
 
Reply With Quote
 
 
 
 
Anno Siegel
Guest
Posts: n/a
 
      03-20-2005
Ted Zlatanov <> wrote in comp.lang.perl.misc:
> On Wed, 16 Mar 2005, wrote:
>
> > "Ted Zlatanov" <> wrote in message
> > news:...
> >> This example does not have anything to do with the $1...$9 variables.
> >> There are only 9 of them,

> >
> > Who on earth told you that?

>
> In my defense, there ARE only 9 of the $1 ... $9 variables


You mean the backreferences \1 ... \9.

Anno
 
Reply With Quote
 
Ted Zlatanov
Guest
Posts: n/a
 
      03-21-2005
On 20 Mar 2005, wrote:

> Ted Zlatanov <> wrote in comp.lang.perl.misc:
>> On Wed, 16 Mar 2005, wrote:
>>
>> > "Ted Zlatanov" <> wrote in message
>> > news:...
>> >> This example does not have anything to do with the $1...$9 variables.
>> >> There are only 9 of them,
>> >
>> > Who on earth told you that?

>>
>> In my defense, there ARE only 9 of the $1 ... $9 variables

>
> You mean the backreferences \1 ... \9.


I originally meant the backreferences and got confused, but my (lame)
joke was that there ARE only 9 variables from $1 to $9

Consider me chastised.

Ted
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seek xpath expression where an attribute name is a regular expression GIMME XML 3 12-29-2008 03:11 PM
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C++ 42 11-04-2008 12:39 PM
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C Programming 45 11-04-2008 12:39 PM
Matching abitrary expression in a regular expression =?iso-8859-1?B?bW9vcJk=?= Java 8 12-02-2005 12:51 AM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57