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

jviereck/regjsparser

Repository files navigation

Parsing the JavaScript's RegExp in JavaScript.

Installation

npm install regjsparser

Usage

varparse=require('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.


[8]ページ先頭

©2009-2025 Movatter.jp