in reply to Help Creating a Code Filter

If you decide to pursue the regex route, it may be helpful to read:

How do I use a regular expression to strip C style comments from a file?