Regular Expressions 101

Sponsors

Library entries

2
pcre

URL MATCH

URL MATCH
Submitted by activesatan - 6 years ago
2
python

.*(\d+).* Selects last number

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

check name

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

NSU ID Card Checker

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

Match "A B C" where A+B=C (final version)

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

Capture Query Strings

A solution for capture query params.
Submitted by Rafael Laurindo - 7 years ago
3
python

Email

Python
Submitted by anonymous - 6 years 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 - 7 years ago