Use regex to parse imports out in the scriptengine.