added support to RegExp patterns
fixed matchRegExp function
Merge pull request #3 from neuquino/master

Added support to RegExp patterns