Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-02-25 07:06
Flavor·Golang

`
/\*([^"*]|".*")*\*+(([^"/*]|".*")([^"*]|".*")*\*+)*/
`
gm
Open regex in editor

Description

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

No look ahead needed.

Submitted by Guyutongxue