added toRegExp() method
Merge pull request #67 from alexishevia/adding_to_regexp_method

added toRegExp() method