Isn't that just the same as saying: 

``` js
regexp  = new RegExp(obj.regex, obj.regex_flag || "");
```