Re: Regex confusion...
- From: guthrie <guthrie@xxxxxxx>
- Date: Thu, 27 Sep 2007 20:59:20 -0000
Oops, small correction;
With this codeprint " pre-Matched::", $`, "\n";
my $img = "0-12345-abc";
print " Match.1 ", (defined $img);
print " Match.2 ", ($img =~ /\S/);
print " Matched::", $&;
print " post-Matched::", $', "\n";
I get::
Match.1 1 Match.2 1 Matched::0
pre-Matched::
post-Matched::-52557-wind
I expected:
pre="", match="0-12345-abc", post=""
.
- References:
- Regex confusion...
- From: guthrie
- Regex confusion...
- Prev by Date: Regex confusion...
- Next by Date: Re: Regex confusion...
- Previous by thread: Regex confusion...
- Next by thread: Re: Regex confusion...
- Index(es):