Hi,

If anyone stuck like me then below is solution for this :
=> ^[a-z_A-Z0-9]+=\d+(,[a-z_A-Z0-9]+=\d+)*$

[a-z_A-Z0-9]+ => this indicate match for string. here + mean multiple character .
= => as ":" was not shown in engine-config suggesion I used '=' as seperator.
\d+ => any number. + indicate double/triple... digit number.
(,[a-z_A-Z0-9]+=\d+) => This indicate repetition unit and * indicate this unit can present multiple time or zero time.
$ => indicate end of line.

I am not good at regex but hope this might help someone.

Thanks,
Rohit


On Thu, Jul 4, 2019 at 7:40 PM TranceWorldLogic . <tranceworldlogic@gmail.com> wrote:
Hi,

I want to set custom vm property as shown below
testme = String1:45;String2:67;

I know engine-config command to run in ovirt, but not able to construct regular expresion.
Please help me.
engine-config -s UserDefinedVMProperties='multiq=<regex>'
I tried below regex but server throw 500 error code after setting property.
regex =(^[a-z_A-Z0-9]+:[0-9]+\;)+$

And even if match entire contain as string that also fine for me.

Please please help me.

Thanks,
~Rohit