This worked for me...
on the controller side define your regex...
$scope.regex = "/^[^\'\"]+$/";
Then on your html you can call...
if you named your controller on html side then you might have to change it to...
ng-pattern="{{name.regex}}"
You were also missing a forward slash at the start of your pattern but escaping single and double quotes does not work well on html side.