Regular Expressions 101

Sponsors

Library entries

0
javascript

Date Validator

Submitted by anonymous - 5 hours ago
0
javascript

111

111
Submitted by Alex - 13 hours ago
0
pcre2

Password

Password includes a,A,1,!$#%
Submitted by anonymous - 2 days ago
0
java

REGEX OS

Regex para extrair titulo e descrição duma OS
Submitted by anonymous - 2 days ago
0
pcre2

长宽高

长宽高
Submitted by mouxan - 3 days ago
0
pcre2

match extends in a class

to match extends in a class
Submitted by anonymous - 3 days ago
0
pcre2

implements Regex

To match implements in classes
Submitted by anonymous - 3 days ago

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

Vote

4

Regular Expression
pcre

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

Description

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