JavaScript RegExp
Regular expression methods for pattern matching. This category documents 16 JavaScript regexp entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: RegExp.prototype.test(), RegExp.prototype.exec(), RegExp.prototype.source, RegExp.prototype.flags, RegExp.prototype.lastIndex, RegExp.prototype.global, RegExp.prototype.ignoreCase, RegExp.prototype.multiline, RegExp.prototype.sticky, RegExp.prototype.unicode, RegExp.prototype[Symbol.match](), RegExp.prototype[Symbol.replace](), RegExp.prototype[Symbol.search](), RegExp.prototype[Symbol.split](), RegExp.prototype.compile(), RegExp.escape(). For a structured walkthrough of the whole topic, read the RegExp guide. Not sure which method you need? RegExp.prototype.test() and RegExp.prototype.exec() are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.