Regular Expressions 101

Sponsors

Library entries

0
pcre2

Nom avant domaine

sdfsdfsdfsdf
Submitted by sdfsfsdfsdf - 7 days ago
0
pcre2

Validate email

Regex for email validation
Submitted by anonymous - 7 days ago
0
javascript

finding video names

Should find any video names
Submitted by anonymous - 8 days ago
0
pcre2

Check WP Admin URLs

Check WP admin pages that are indexed
Submitted by anonymous - 8 days ago
0
pcre2

SMB share parsing

A regex for parsing SMB shares
Submitted by Drav Sloan - 9 days ago

BOOLEAN EXPRESSION WITH BRACKETS MATCHER

Vote

3

Regular Expression
pcre

/
(?(DEFINE) (?<exprs> (?&expr)(\s+(?&bool)\s+((?&expr)|\(\s*(?&exprs)\s*\)))* ) (?<expr> (?&valleft)\s?(?&comp)\s?(?&valright) ) (?<comp> ((!=)|(==)|(<=)|(>=)|(<)|(>)){1} ) (?<valleft> (?&not)[\w\.]+ ) (?<valright> [\w\.]+ ) (?<bool> (and|or) ) (?<not> (not\s+)?) ) (?&exprs)
/
xmi

Description

Loading markdown...
Submitted by Ilya Filisteev - 6 years ago