def matches(self, value, caseSensitive=True):
newq = self.copy()<EOL>newq.setOp(Query.Op.Matches)<EOL>newq.setValue(value)<EOL>newq.setCaseSensitive(caseSensitive)<EOL>return newq<EOL>
Sets the operator type to Query.Op.Matches and sets \
the value to the inputted regex expression.  This method will only work \
on text based fields.

:param      value       <str>

:return     <Query>

:usage      |>>> from orb import Query as Q
            |>>> query = Q('test').matches('^\d+-\w+$')
            |>>> print query
            |test matches ^\d+-\w+$