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 . < [email protected]> 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 >
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/[email protected]/message/33J4LDHI5LCQBBL7A65XMQUXI4C2ZUY3/

