Regular Expressions 101

Community Patterns

Remove Javascript Single Line Comment

0

Regular Expression
PCRE (PHP <7.3)

@
\s*(?<!:)//.*?$
@
m

Description

Yancharuk's code/regex

Submitted by Yancharuk - 8 years ago