Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var critical = /(?!\.critical).*\.less$/;
// matches
Title.critical.less
// but not
Toast.less
App.less
var nonCritical = /^((?!critical).)*\.less$/gm;
// matches
Toast.less
App.less
// but not
Title.critical.less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.