Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(\/)(\*)(.|\n)*?\2\1|(\/\/.*)
/
g

Description

Building a Smart IDE: Identifying comments

Submitted by anonymous - 7 years ago