Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

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

Description

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

No look ahead needed.

Submitted by Guyutongxue - 3 years ago