Regular Expressions 101

Community Library Entry

0

Regular Expression
Java 8

"
\[(\s*[0-9]+\s*),(\s*[0-9]+\s*)\]\s*(>=|<=|==|>|<)\s*([0-9]+)\s*(\|\||\&\&)*
"
gm

Description

This regex matches the variable address condition like: [1,100] >= 1 && [1,111] <= 2

Submitted by Texx - 2 years ago