There are cases when you want to quickly delete all formulas’s comments of a model.
Below I show my solution in the form of an Action script. This A-script uses RegEx that matches both single-line and multi-line comments of model’s formulas. I have hidden the search pattern from you for now so that you yourself think about developing your own pattern, seeing my working solution.
This two-matrix model is a simplified version of the real one. The script-button on the canvas serves as a simplifying tool for showing the results of the A-script. I cancel the A-script action using Ctrl+Z.
It’s time to reveal the Regex pattern I used in this A-script: