Strip Comments from Oracle SQL and PL/SQL scripts

Category:
String Manipulation
Type:
Snippets
Difficulty:
Intermediate

Author: Wil Johnson

Version Compatibility:

More information:
This is a sub that accepts input and output file names, and will strip all comments from an Oracle SQL or PL/SQL script. It's especially handy if you use a script generator that includes excess useless comments.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: