Regular Expressions 101

Sponsors

Library entries

0
pcre2

get custom emoji

Hello :smiley: i love :chocolate:
Submitted by anonymous - 5 hours ago
0
pcre2

CEP Regex Brazil

Regex para validação de CEP
Submitted by Jasmini Santos - 17 hours ago
0
pcre2

id_name_fb

get id, name from fb link
Submitted by anonymous - 3 days ago
0
pcre2

basic email validation

Basic email regex for quick validation
Submitted by bUxEE - 3 days ago
0
javascript

itemku regex youtube

sdfsdfsdf
Submitted by anonymous - 3 days ago
0
pcre2

RTDM_Thread_Pool

RTDM_Thread_Pool
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