- Instant help with your JavaScript coding problems
RegExp
The RegExp object is used for matching text with a pattern.
JavaScript:
RegExp()
TypeScript:
new (pattern: RegExp | string, flags?: string): RegExp;
Examples:
const re = new RegExp(pattern + '$');

Related snippets