Quote Originally Posted by ultr View Post
Simply because it does not work in QtScript.
How exactly did you try it?

I will try exporting QRegExp. I hope it won't requite more exports, since these scripts are meant to be an easy interface for users. They should be able to use it just like JavaScript without reading tons of additional documentation.
You can export any function you want in a way you see fit. It will not require anything unless you make it require something.