Regular Expressions 101

Library entries

1
pcre

add hint path to csproj references

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

Encontrar espaço em branco duplicado

White space
Submitted by Gustavo Américo - 8 years ago
1
pcre

Single-line comment extraction

no description available
Submitted by Jeff Hansen - 8 years ago
1
pcre

EIS Chef Runlist Regex

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

Parse all adresses in href

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

4shared

www.4shared.com
Submitted by guru - 8 years ago
1
pcre

a-zA-Z + 0-9 + [!$%&?]

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

Phone number

no description available
Submitted by Mark Landry - 8 years ago
0
pcre

test

AttributeConnID 45524524355
Submitted by anonymous - 8 years ago
-3
pcre

iOS.Strings

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

For telephone

This is for telephone pattern +1 123-123-1234
Submitted by kevin - 8 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 - 8 years ago