API - PHP

I have this command line → /queue simple print where name~“pppoe” working fine.

But my problem is with API , trying …

$API->write(‘/queue/simple/print’,false);
$API->write(‘=where=’,false);
$API->write(“name~‘pppoe’”);

ignoring my regex ‘~pppoe’ returning all ‘queues’.

somebody have same “scenario/case” or someone suggestion?

Regular expressions are not supported by the API protocol yet.

Currently, the only way to do this sort of thing is on the PHP side, i.e. get all items, and check the properties with preg_match().

I’ll research about , thanks