Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, I have a really quick question... I'm a Perl newbie... just started a couple days ago: :- Here is my question: How would I remove all comment strings (double slashes and comment text) in an arbitrary javascript function similar to the below comment without removing things like http://... strings? // comment string I know it would be something like $fileString=~s/ not sure what the pattern replace would be after the s/ Thanks very much for any assistance you may provide. John