in reply to Re: Re: regexp and substitute operator problem
in thread regexp and substitute operator problem
As for your second question, just copy/pasting your code and the example text does output the hyphens and dots here. What are you displaying it on?
You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.
Also, you might at least want to put some () around the central part of your regex, as in: /\s($c*?)\s/ so you won't capture the whitespace around the matches as you do now. Or maybe that is what you wanted.
You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.
In Section
Seekers of Perl Wisdom