Community Patterns

Community Library Entry

0

Regular Expression
Created·2015-10-27 14:13
Flavor·Python

r"
(?:(?s)\/\*((?:(?!\*\/).)*?)\*\/)
"
Open regex in editor

Description

Reads C comments as this "/* Do test / and removes / */ parts and leaves only comment part

Submitted by Shuhrat Rahimov