You can also get the regex under 2 inches with a character class:
```
var LANG = Y.Lang,
    safeRegExp;

// Matches: \ [ ] . + * ? ^ $ ( ) | { }
safeRegExp = /[\\[\].+*?\^$()|{}]/g
```