Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys
I'm having a problem with the following regex
i.e.
I'm having a problem with the following regex
All I want to do is swap any number of spaces (the first 2) with ":"$line =~ s/.{2}\s+/:/;
i.e.
Any idea what I'm doing wrong?$line = 'this has three spaces'; #before $line = 'this:has:three spaces'; #after
Back to
Seekers of Perl Wisdom