Title: Filter with variables (case sensitive)
Last modified: August 21, 2016

---

# Filter with variables (case sensitive)

 *  Resolved [jtem](https://wordpress.org/support/users/jtem/)
 * (@jtem)
 * [13 years ago](https://wordpress.org/support/topic/filter-with-variables-case-sensitive/)
 * Hi Michael,
    First of all, congratulations for you plugin, it is really great!
   I am using this shortcode: [cfdb-table form=”Introducir presupuesto” filter=”
   ex_field4=$user_login”] But i founded some problems because the variables are
   case sensitive, and the filter doesn´t work as i want. I would need to introduce
   something to disable case sensivity, like in this other expression (/i): [cfdb-
   table form=”Introducir presupuesto” filter=”ex_field4~~/$user_login/i”] But at
   the same time i would need the total coincidence of characters. What can I do?
   Thank you very much! Jtem.
 * [http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/](http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jtem](https://wordpress.org/support/users/jtem/)
 * (@jtem)
 * [13 years ago](https://wordpress.org/support/topic/filter-with-variables-case-sensitive/#post-3766948)
 * Hi again!
    I founded in “preg_match” the use of **/b** in order to get a word
   boundary, so I have tried to change the shortcode in this way: **[cfdb-table 
   form=”Introducir presupuesto” filter=”ex_field4~~/\b$user_login\b/i”]** But this
   doesn´t run. I need that **ex_field4=b$user_login** and also that the variable**
   b$user_login** doesn´t have case sensivity. Must I have to write my own shortcode
   or is there any other way to do it? Thanks everyone in advance! Jtem.
 *  Thread Starter [jtem](https://wordpress.org/support/users/jtem/)
 * (@jtem)
 * [13 years ago](https://wordpress.org/support/topic/filter-with-variables-case-sensitive/#post-3766965)
 * Hi!
    I got it! I have introduced **strtoupper** in CF7FilterParser.php case ‘
   ==’: $retVal = **strtoupper**($left) == **strtoupper**($right); break; and used[
   cfdb-table form=”Introducir presupuesto” filter=”ex_field4==$user_login”] I will
   donate for your plugin, but you didn´t helped me!! Jtem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filter with variables (case sensitive)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

## Tags

 * [case-sensitive](https://wordpress.org/support/topic-tag/case-sensitive/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 2 replies
 * 1 participant
 * Last reply from: [jtem](https://wordpress.org/support/users/jtem/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/filter-with-variables-case-sensitive/#post-3766965)
 * Status: resolved