Even though you've told .* not to be greedy, you've still told the RE engine it needs to match at the end of the string so it happily gobbles up everything until then (one char at a time since it's being non-greedy). Perhaps you meant something more like s/:[^:]+$//?
In reply to Re: Why doesn't this s/regex// work?
by Fletch
in thread Why doesn't this s/regex// work?
by nneul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |