move script regex to module level