Regular Expressions 101

Sponsors

Library entries

3
pcre

Nombres 4 chiffres

Nombres 4 chifres
Submitted by EA - 7 years ago
3
pcre

Shortcode parser

Parse shortcodes, its attributes values and html
Submitted by anonymous - 7 years ago
3
pcre

POST OFFICE BOX

no description available
Submitted by jmweekes - 7 years ago
3
pcre

ln -l linux parse

parse linux ln -l output command
Submitted by guignol95 - 7 years ago
3
pcre

Select all number greater than 36

no description available
Submitted by Mansoor - 7 years ago
3
pcre

coffeescript operator

no description available
Submitted by anonymous - 7 years ago
3
pcre

Remove br tags inside anchor tags

no description available
Submitted by anonymous - 6 years ago
3
python

iframe src parser

Get iframe src
Submitted by Sumeet Fefar - 6 years ago
3
pcre

JWT Validation

Validate a Json Web Token (JWT).
Submitted by Erik Maas - 6 years ago
3
pcre

TTML time expression offset-time

no description available
Submitted by ovvland - 6 years ago

remove comments from php code

Vote

10

Regular Expression
pcre

@
(?(DEFINE) (?<next_open_tag> [^<]*+ (?i: <++[^<?s][^<]* | <++(?! \?php | \?= | script\s*language\s*=\s*([\'"]?)php\g{-1}\s*> ) [^<]* )*+ (?i: <++(?: \?php | \?= | [^>]+ ) | \z ) ) ) \A (?&next_open_tag) \K | [^'"`/#<?]*+ (?: '(?:[^'\\]+|\\.)*+' [^\'"`/#<?]* | "(?:[^"\\]+|\\.)*+" [^\'"`/#<?]* | `(?:[^`\\]+|\\.)*+` [^\'"`/#<?]* | /(?![/*]) [^\'"`/#<?]* # stop for // or /* | # if close tag ?> \? (?: >(?&next_open_tag)[^\'"`/#<?]* | ) | < (?: # heredoc or nowdoc <<[\ \t]*([\'"]?) ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*) \g{-2}[\ \t]*[\r\n] (?-s:.*+[\r\n])*? \g{-1}[\r\n;] [^\'"`/#<?]* | (?i: /script\s*>) (?&next_open_tag) [^\'"`/#<?]* | [^\'"`/#<?]* ) )*+ \K (?: (?://|\#)(?:[^\n?]+|\?(?!>))*+ # single line comment // и # | /\*(?:[^*]+|\*(?!/))*+\*/ # multi line comment /* */ )?
@
xsg

Description

Loading markdown...
Submitted by anonymous - 7 years ago