Changed property setter to use attr, rather than setting directly, as it triggers events
Fixed bug with unanchored regexes - string parameters containing numbers were matching