Discussion Forum

Variables in Regex while writing a Rule

I wanted to add a variable to the regex expression
So let’s say I have two string $a and $b,
What will be the match clause to find if a is substring of b.

I want something like this:

match $a like “^.* $b *$”;

What is the correct way to put $b in the regex string?

We can’t currently variabilise the regex patterns, you’ll have to use different queries to contruct different regexes from the application layer