Regular Expressions 101

Community Patterns

Simple regex to parse OVAL expressions

0

Regular Expression
Java 8

"
((?<A>\s(greater|less|earlier)\sth[a|e]n)((?<B>\sor equal)[s]?)?(\sto)?\s)(?<V>[^\s]+)?
"
gm

Description

This regexp helps you to parse text-based OVAL expressions. See the test samples

Submitted by Alexander Dubok - 2 years ago