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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With