Skip to main content

RegExp s (dotAll) flag

Less than 1 minutefeaturees-proposalmissing-example

RegExp s (dotAll) flagopen in new window

Types

// patched for support `RegExp` dotAll (`s`) flag:
interface RegExp {
  new (pattern: RegExp | string, flags?: string): RegExp;
  exec(): RegExpExecResult | null;
  readonly dotAll: boolean;
  readonly flags: string;
}

interface RegExpExecResult extends Array<string> {
  index: number;
  input: string;
}

Entry points

core-js/proposals/regexp-dotall-flag