Community Patterns

Community Library Entry

3

Regular Expression
Created·2015-09-22 14:55
Flavor·PCRE (Legacy)

/
(?(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
Open regex in editor

Description

comapre simbols used just !=, ==, <=, >=, <, > beacose of task keyword "not" can be used only before leftside value beacose of task

Submitted by Ilya Filisteev