Regular Expressions 101

Sponsors

Library entries

-8
pcre

Regular exp to exclude a domain

to exclude one domain abc.com
Submitted by Sandy - 9 years ago
1
pcre

Remove Leading and Trailing Spaces

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