How to find this pattern using regex?
C style block comments
/* xxxxxxxxxxxx */
How to find this pattern using regex?
C style block comments
/* xxxxxxxxxxxx */
Try using
\/\*(\*(?!\/)|[^*])*\*\/
to capture single line and multi-line block comments. It searches for /* followed by any number of either:
* that is not followed by a /*and then the closing */ again.