* John W. Krahn <[EMAIL PROTECTED]> [2008-06-27 11:28]:
> Tim Bowden wrote:
>> On Tue, 2008-06-24 at 19:37 -0700, John W. Krahn wrote:
>>>
>>> Perhaps:
>>>
>>> my ( $snippet ) = $string =~ /\w\["([^"]+)",/;
>>
>> $string =~ /\w\["([^"]+)",/;
>> my $snippet = $1;
>>
>> does the trick. I can see If
Perl WANNABE wrote:
* John W. Krahn <[EMAIL PROTECTED]> [2008-06-27 11:28]:
Tim Bowden wrote:
On Tue, 2008-06-24 at 19:37 -0700, John W. Krahn wrote:
Perhaps:
my ( $snippet ) = $string =~ /\w\["([^"]+)",/;
$string =~ /\w\["([^"]+)",/;
my $snippet = $1;
does the trick. I can see If I
Tim Bowden wrote:
On Tue, 2008-06-24 at 19:37 -0700, John W. Krahn wrote:
Perhaps:
my ( $snippet ) = $string =~ /\w\["([^"]+)",/;
$string =~ /\w\["([^"]+)",/;
my $snippet = $1;
does the trick. I can see If I don't get on top of regex's I'm
seriously restricting the power of perl. Starting
On Tue, 2008-06-24 at 19:37 -0700, John W. Krahn wrote:
> Tim Bowden wrote:
> > Hi,
>
> Hello,
>
> > I'm trying to isolate text in a string. My string is typically of the
> > form:
> > sometext["moretext",
> >
> > I would like to isolate moretext.
> >
> > I tried:
> > #!/usr/bin/perl -w
> > my
On Jun 25, 11:20 am, [EMAIL PROTECTED] (Tim Bowden) wrote:
> Hi,
>
> I'm trying to isolate text in a string. My string is typically of the
> form:
> sometext["moretext",
>
> I would like to isolate moretext.
>
> I tried:
> #!/usr/bin/perl -w
> my $string = 'sometext["moretext",';
> print $string;
>
Tim Bowden wrote:
Hi,
Hello,
I'm trying to isolate text in a string. My string is typically of the
form:
sometext["moretext",
I would like to isolate moretext.
I tried:
#!/usr/bin/perl -w
my $string = 'sometext["moretext",';
print $string;
my $snippet;
($snippet, $snippet) = split(/$string/
Hi,
I'm trying to isolate text in a string. My string is typically of the
form:
sometext["moretext",
I would like to isolate moretext.
I tried:
#!/usr/bin/perl -w
my $string = 'sometext["moretext",';
print $string;
my $snippet;
($snippet, $snippet) = split(/$string/,\[,2);
print "$snippet\n";
I