That would make a lot of sense. It would also help avoiding creating objects each time literal regexp is used (by creating and holding to just one regexp instance), especially if performance is of concern.