Iss1852 wildcards fields

Corrected the code that is in charge of matching regular expressions of fields.
The problem was that we needed to use different syntax for SQL Lite and the
Java Pattern class, when matching the expressions.