Regular Expressions 101

Sponsors

Library entries

1
pcre

select stuff of </a> [beta]

no description available
Submitted by Kerosene - 8 years ago
1
pcre

css all comments

no description available
Submitted by Mitus M. - 8 years ago
1
pcre

gk

wertyuikjh
Submitted by hjk - 8 years ago
0
pcre

background:url

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

background:url

no description available
Submitted by Mitus M. - 8 years ago
1
pcre

background:url

no description available
Submitted by Mitus M. - 8 years ago
37
pcre

http://

no description available
Submitted by Mitus M. - 8 years ago
-3
pcre

Date and Time

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

php comment

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

Parse drupal version info from filename

no description available
Submitted by Jason Smith - 8 years ago
-2
pcre

Match v4 IP address

no description available
Submitted by Budiony Damyanov - 8 years ago
-3
pcre

DateTime YYYY-MM-DD hh:mm:ss

no description available
Submitted by Madhan - 8 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