puppetlabs/puppetdb — pull request #338 by grimradical (2012-10-27 00:59:18+00:00)
Title: (#14763) Regexp operator support

This patchset introduces a new `~` operator into our query language that
will perform a regexp search. The operator works against:

* fact names
* fact values
* node names
* resource metadata (type/title/sourcefile/sourceline/etc)
* resource tags

The code introduces 2 new multimethods: `sql-regexp-match` and
`sql-regexp-array-match`. Each is specialized to work for both
PostgreSQL and HSQLDB.

Note that it's not currently possible to do regexp searches against
parameter values, as those are currently stored as serialized JSON
values (because puppet can hand us strings, hashes, arrays, whatever).

Signed-off-by: Deepak Giridharagopal