Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Parsing the JavaScript's RegExp in JavaScript.

License

NotificationsYou must be signed in to change notification settings

babel/regjsparser

 
 

This is a fork ofjviereck/regjsparser with some additional patches. The end goal is to merge these patches upstream.

Parsing the JavaScript's RegExp in JavaScript.

Installation

npm install @babel/regjsparser

Usage

varparse=require('@babel/regjsparser').parse;varparseTree=parse('^a');// /^a/console.log(parseTree);// Toggle on/off additional features:varparseTree=parse('^a','',{// SEE: https://github.com/jviereck/regjsparser/pull/78unicodePropertyEscape:true,// SEE: https://github.com/jviereck/regjsparser/pull/83namedGroups:true,// SEE: https://github.com/jviereck/regjsparser/pull/89lookbehind:true});console.log(parseTree);

Testing

To run the tests, run the following command:

npmtest

To create a new reference file, execute…

node test/update-fixtures.js

…from the repo top directory.

About

Parsing the JavaScript's RegExp in JavaScript.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript94.7%
  • TypeScript4.0%
  • HTML1.3%

[8]ページ先頭

©2009-2025 Movatter.jp