changes to jquery plugin
add regex support