Title: Using regex for city selection
Last modified: August 24, 2016

---

# Using regex for city selection

 *  Resolved [Quasimodo84](https://wordpress.org/support/users/quasimodo84/)
 * (@quasimodo84)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/)
 * Hi thanks for making this great plugin!
 * But i’m currently having problem for making exceptions with the city selection(
   since there are so many of em). Is it possible for using regex in the backend?
   So it would be easier instead typing one by one all the cities?
 * Like for example i have a city called
 * Necro and there are also necro south, necro north, necro west, necro east..
 * I did try using .*Necro.* but it didn’t work..maybe i’m typing it wrong..
 * [https://wordpress.org/plugins/woocommerce-advanced-free-shipping/](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/)

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

 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/#post-6154062)
 * Hi,
 * By default this is not possible within the plugin.
 * If you are/have/know a developer, it is possible to easily add a new condition,
   that matches your requirements.
    If that is feasible, I can send you an example
   script, showing how to add a custom condition.
 * Are zipcodes maybe another possibility for you?
 * Cheers,
    Jeroen
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 11 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/#post-6154092)
 * [@quasimodo84](https://wordpress.org/support/users/quasimodo84/) Please do not
   post your email address in these forums.
 * > If that is feasible, I can send you an example script, showing how to add a
   > custom condition.
 * [@sormano](https://wordpress.org/support/users/sormano/) Do you have a repo that
   you can share? If that doesn’t work do you want to post a contact URL?
 *  Thread Starter [Quasimodo84](https://wordpress.org/support/users/quasimodo84/)
 * (@quasimodo84)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/#post-6154098)
 * sorry typo..i mean please send it to my email 🙂
 *  Thread Starter [Quasimodo84](https://wordpress.org/support/users/quasimodo84/)
 * (@quasimodo84)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/#post-6154100)
 * [@jandembowski](https://wordpress.org/support/users/jandembowski/) sry i didn’t
   know..
 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/#post-6154128)
 * Jup, that would be my next reply 🙂
 * Can you contact me through [http://jeroensormani.com/contact](http://jeroensormani.com/contact)?
 * Thanks!
 * Jeroen
 * PS. setting this thread as resolved, if you’ve got any other questions you can
   reply to my email 😉

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

The topic ‘Using regex for city selection’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-advanced-free-shipping/assets/icon-256x256.png?
   rev=1171652)
 * [Advanced Free Shipping for WooCommerce](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-advanced-free-shipping/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/using-regex-for-city-selection/#post-6154128)
 * Status: resolved