How to use :
db.collection.find( { user_id: /bc/ } )
I tried this:
Model::find( array('conditions' => array('param' => '/value/') ) )
more still fails
A regular expression /bc/ in javascript is not the same as a string in PHP '/value/'. You have to use https://php.net/manual/en/class.mongoregex.php
thank
Solution
Model::find( array('conditions' => array('param' => new MongoRegex("/value/") ) ) )