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;
In reply to Why doesn't this s/regex// work? by nneul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |