Of course it dosen't. $ within a regex means End-Of-Line. And trying to match something (nonempty) after the end of the line is not successful within a single line match.
(But I have to admit, I had to run Perl for this and then stare at the output for some time)
Update: I can't confirm jeroenes' findings with Perl 5.003 under solaris. I only get one bar printed and no substitution.
In reply to Re: Re^2: Regex Grumblings (Variable Interpolation)
by Corion
in thread Regex Grumblings (Variable Interpolation)
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |