Allow to use a RegExp that comes trough a JSON-Object.

Allow to use a RegExp that comes trough a JSON-Object.

Example:

    var json = { regexp: "/.*/" };

    <input type="text" ng-pattern="json.regexp">