Regular Expressions 101

Sponsors

Library entries

1
javascript

Matching an Email

no description available
Submitted by appsunited - 9 years ago
-2
pcre

Russian mobile number normilizer (dumb)

no description available
Submitted by fullpipe - 9 years ago
1
pcre

Check SQL Insert Into

no description available
Submitted by MelRight - 9 years ago
6
javascript

Password

no description available
Submitted by anonymous - 9 years ago
8
pcre

Date time Advanced

no description available
Submitted by Mr.Neutro - 9 years ago
-2
pcre

Date time

no description available
Submitted by Mr.Neutro - 9 years ago
5
pcre

All href in a tag

Find all href in a tag
Submitted by Miron Yanovskiy - 9 years ago
2
pcre

Split Date

no description available
Submitted by Arun Kumar Sekar - 9 years ago
2
javascript

sample

no description available
Submitted by anonymous - 9 years ago
1
pcre

Number, comma and dot

no description available
Submitted by anonymous - 9 years 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