Regular Expressions 101

Community Patterns

31

ninite

PCRE (PHP <7.3)
no description available
Submitted by peek - 8 years ago
35

http://

PCRE (PHP <7.3)
no description available
Submitted by Mitus M. - 10 years ago

Strip multi-line (star) comments from JavaScript, while leaving any CDATA sections intact.

4

Regular Expression
PCRE (PHP <7.3)

/
\/\*(?!(\<\!\[CDATA\[)|(\]\]>))(.*?)\*\/
/
gs

Description

Loading markdown...
Submitted by Dane MacMillan - 11 years ago