Babel
  • Docs
  • Setup
  • Try it out
  • Videos
  • Blog
  • Donate
  • Team
  • GitHub
Edit

@babel/plugin-transform-dotall-regex

Example

In

/./s

Out

/[\0-\uFFFF]/

In

/./su

Out

/[\0-\u{10FFFF}]/u

Here’s an online demo.

Installation

npm install --save-dev @babel/plugin-transform-dotall-regex

Usage

With a configuration file (Recommended)

.babelrc

{
  "plugins": ["@babel/plugin-transform-dotall-regex"]
}

Via CLI

$ babel --plugins @babel/plugin-transform-dotall-regex script.js

Via Node.js API

require('@babel/core').transform(code, {
  'plugins': ['@babel/plugin-transform-dotall-regex']
});

Author

twitter/mathias
Mathias Bynens
  • Example
  • Installation
  • Usage
    • With a configuration file (Recommended)
    • Via CLI
    • Via Node.js API
  • Author
Babel
Docs
Learn ES2015
Community
VideosUser ShowcaseStack OverflowSlack ChannelTwitter
More
BlogGitHub OrgGitHub RepoWebsite RepoOld 6.x SiteOld 5.x Site