Looking for a function that removes all comments from a script

Viewed 66

I'm wanting to clean up some scripts and one of the functions I'd like is one to remove all comments. This would be strings that follow a #

And text between <# comment #>

Suggestions?

0 Answers
Related