nneul has asked for the wisdom of the Perl Monks concerning the following question:
The result is "fruit" instead of "fruit:red". What am I missing here about how this regex is being handled?my $code = "fruit:red:apple"; my $parent = $code; $parent =~ s/:.*?$//o;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why doesn't this s/regex// work?
by japhy (Canon) on Dec 19, 2005 at 18:55 UTC | |
|
Re: Why doesn't this s/regex// work?
by philcrow (Priest) on Dec 19, 2005 at 18:37 UTC | |
|
Re: Why doesn't this s/regex// work?
by Fletch (Bishop) on Dec 19, 2005 at 18:37 UTC | |
|
Re: Why doesn't this s/regex// work?
by Roy Johnson (Monsignor) on Dec 19, 2005 at 19:04 UTC | |
|
Re: Why doesn't this s/regex// work?
by Fang (Pilgrim) on Dec 19, 2005 at 22:04 UTC | |
|
Re: Why doesn't this s/regex// work?
by tphyahoo (Vicar) on Dec 19, 2005 at 18:49 UTC |