/ Published in: jQuery
The regular expression must be in non-literal notation; so replace all backslashes with two backslashes (e.g. ^\w+$ -> ^\\w+$).
All searches are case insensitive; you can change this by removing the ‘i’ flag in the plugin.
All searches are case insensitive; you can change this by removing the ‘i’ flag in the plugin.
URL: http://james.padolsey.com/javascript/regex-selector-for-jquery/