Discussion Forum

Regex queries in rules

I wanted to write a regex query while defining a rule, to partially match strings. Is it possible ?

Anything you write in a match clause you can write in a rule! So you can do things like this:

in the when of a rule :slight_smile:

If you have to proof some inputs for given logic you can set also regex expressions for string attributes when this is what you are searching for.

Best, Frank

This is a schema:

$p isa person, has name $personName;
$e isa employee, has name $employeeName;
$personName like ^$employeeName

I am getting an error

$employeeName has to be a constant :slight_smile: