Regular Expressions 101

Community Patterns

1...34567...482

C-style block comment with "*/" escape

0

Regular Expression
Golang

`
/\*([^"*]|".*")*\*+(([^"/*]|".*")([^"*]|".*")*\*+)*/
`
gm

Description

Match /* ... / with escape of quotation marks, e.g. / "*/" */.

No look ahead needed.

Submitted by Guyutongxue - 2 years ago