We don't bite newbies here... much | |
PerlMonks |
stripping characters from a stringby Anonymous Monk |
on Mar 06, 2006 at 06:47 UTC ( [id://534640]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi, i just started learning perl, so sorry if this question may sound very newbish.
I have a string that i want to replace spaces with an under score and remove any '. i know i need some sort of regex but i really don't understand how to start. $string = "Good O'l Time"; will look like this with the regex: Good_Ol_Time I would appreciate any help or referrence :) thanks!
Back to
Seekers of Perl Wisdom
|
|