Title: regular expression to exclude plugin js or css
Last modified: September 12, 2016

---

# regular expression to exclude plugin js or css

 *  [Prajakta Gadhave](https://wordpress.org/support/users/prajakta-gadhave/)
 * (@prajakta-gadhave)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/)
 * Hello,
 * I want to use regular expression that will exclude all css and js files from 
   my plugin to be minified. is it possible?
 * Waiting for quick reply

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

 *  Thread Starter [Prajakta Gadhave](https://wordpress.org/support/users/prajakta-gadhave/)
 * (@prajakta-gadhave)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/#post-8173471)
 * I want to use regular expression here – [http://goo.gl/N0aQrX](http://goo.gl/N0aQrX)
 * [moderator: link is] [http://screenshots.sharkz.in/prajakta/2016/09/ShareX_2016-09-12_19-17-04.png](http://screenshots.sharkz.in/prajakta/2016/09/ShareX_2016-09-12_19-17-04.png)
    -  This reply was modified 9 years, 9 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 9 years, 9 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  [Ashok](https://wordpress.org/support/users/bappidgreat/)
 * (@bappidgreat)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/#post-8174962)
 * [@prajakta-gadhave](https://wordpress.org/support/users/prajakta-gadhave/), I
   don’t think this is possible, or I am missing something. But I believe this would
   be useful. If you don’t found a solution, you can create a feature request from
   Dashboard > Performance > Support tab.
 * Have a good day!
 * Cheers
    Ash
 *  [Kimberly](https://wordpress.org/support/users/amiga500/)
 * (@amiga500)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/#post-8191814)
 * Hmmm, I could write the necessary code to handle regex since its pretty quick
   and easy to do, and then have it integrated into the w3tc [community build](https://github.com/szepeviktor/fix-w3tc/commits/master).
   Seems like fun. I might get to it in a few days or next week. Right now i’m working
   on other things in w3tc.
 * Kimberly
    -  This reply was modified 9 years, 8 months ago by [Kimberly](https://wordpress.org/support/users/amiga500/).
 *  [Kimberly](https://wordpress.org/support/users/amiga500/)
 * (@amiga500)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/#post-8194486)
 * Ok it now supports regular expressions for the areas you described. I decided
   to expand this support by making many of the multi-line textbox fields under 
   Page Cache & Minify as regex aware.
 * I’m sure you’ve moved on so i don’t expect you will ever see this, but at least
   it will be a feature for other users. For others who do see this and want to 
   give it a try check out the community-driven [fix-w3tc](https://github.com/szepeviktor/fix-w3tc/releases).
 * Regards,
    Kimberly
    -  This reply was modified 9 years, 8 months ago by [Kimberly](https://wordpress.org/support/users/amiga500/).
 *  [dshakya](https://wordpress.org/support/users/dshakya/)
 * (@dshakya)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/#post-8810410)
 * Hi Kimberley,
 * I have set the regular expression for Minify tab > Include external files/libraries
   and checked the Use Regular Expression for matching box but W3TC is NOT COMBINING
   those files. Using Version 0.9.5.2 with WordPress 4.7.2
 * /https:\/\/example\.com\/wp-content\/plugins\/revslider\/public\/assets\/js\/
   extensions\/revolution.extension\.[a-zA-Z0-9]+\.min.js/g
 * Am I doing something wrong?

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

The topic ‘regular expression to exclude plugin js or css’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [regex](https://wordpress.org/support/topic-tag/regex/)
 * [regular expression](https://wordpress.org/support/topic-tag/regular-expression/)
 * [W3TC](https://wordpress.org/support/topic-tag/w3tc/)

 * 5 replies
 * 4 participants
 * Last reply from: [dshakya](https://wordpress.org/support/users/dshakya/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/regular-expression-to-exclude-plugin-js-or-css/#post-8810410)
 * Status: not resolved