# Regular Expression Collector uncovers all your secrets

Note: Only regular expression literals and objects created with `RegExp` are considered.

Type ECMAScript code:

var letterRE = new RegExp('[a-zA-Z]', 'g'), digitRE = RegExp('[0-9]'); // This is from json2.js. if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { }

The above code editor is based on CodeMirror.

Using Esprima version .