[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3460":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},3460,"JSVerbalExpressions","VerbalExpressions\u002FJSVerbalExpressions","VerbalExpressions","JavaScript Regular expressions made easy","http:\u002F\u002Fverbalexpressions.github.io\u002FJSVerbalExpressions\u002F",null,"JavaScript",12149,490,252,23,0,1,3,70.87,"MIT License",false,"master",true,[25,26],"javascript-regular-expressions","verbalexpressions","2026-06-12 04:00:17","# VerbalExpressions\n\n[![Build Status](https:\u002F\u002Ftravis-ci.org\u002FVerbalExpressions\u002FJSVerbalExpressions.svg)](https:\u002F\u002Ftravis-ci.org\u002FVerbalExpressions\u002FJSVerbalExpressions)\n[![Latest Version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fverbal-expressions.svg)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fverbal-expressions)\n[![jsDelivr](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdynamic\u002Fjson.svg?label=jsDelivr&url=https%3A%2F%2Fdata.jsdelivr.com%2Fv1%2Fpackage%2Fnpm%2Fverbal-expressions&query=%24..tags.latest&colorB=blue&prefix=v)](https:\u002F\u002Fwww.jsdelivr.com\u002Fpackage\u002Fnpm\u002Fverbal-expressions)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FVerbalExpressions\u002FJSVerbalExpressions.svg)](LICENSE)\n\n## JavaScript Regular Expressions made easy\n\nVerbalExpressions is a JavaScript library that helps construct difficult regular expressions.\n\n## How to get started\n\n### In the browser\n\n```html\n\u003Cscript src=\"VerbalExpressions.js\">\u003C\u002Fscript>\n```\n\nOr use the [jsDelivr CDN](https:\u002F\u002Fwww.jsdelivr.com\u002Fpackage\u002Fnpm\u002Fverbal-expressions).\n\n### On the server (node.js)\n\nInstall:\n\n```sh\nnpm install verbal-expressions\n```\n\nRequire:\n\n```js\nconst VerEx = require('verbal-expressions');\n```\n\nOr use ES6's `import`:\n\n```js\nimport VerEx from 'verbal-expressions';\n```\n\n## Running tests\n\n```sh\nnpm test\n```\n\n(or)\n\n```sh\nnpm run test:verbose\n```\n\n## Creating a minified version\n\n```sh\nnpm run build\n```\n\nThis will run [Babel](https:\u002F\u002Fbabeljs.io) on `VerbalExpressions.js` and output the result to `dist\u002Fverbalexpressions.js`. A minified version of the same will also be written to `dist\u002Fverbalexpressions.min.js`.\n\nA source map will also be created in `dist`, so you can use the original \"un-babelified\", unminified source file for debugging purposes.\n\n## Building the docs\u002F folder\n\nThe `docs\u002F` folder uses Jekyll for building the static HTML and is hosted at\ngh-pages.\n\nTo install the Ruby dependencies, run:\n\n```\ncd docs\u002F\nbundle install\n```\n\nThis installs all needed Ruby dependencies locally\n\nAfter you've installed dependencies, you can run:\n\n```\nbundle exec jekyll build\n```\n\nThis builds all static files to `docs\u002F_site\u002F` folder.\n\nIf you want to develop the files locally, you can run:\n\n```\nbundle exec jekyll serve\n```\n\nThis starts a local development web server and starts watching your files for\nchanges.\n\n## API documentation\n\nYou can find the API documentation at [verbalexpressions.github.io\u002FJSVerbalExpressions](https:\u002F\u002Fverbalexpressions.github.io\u002FJSVerbalExpressions). You can find the source code for the docs in [`docs`](docs\u002F).\n\n## Examples\n\nHere are some simple examples to give an idea of how VerbalExpressions works:\n\n### Testing if we have a valid URL\n\n```js\n\u002F\u002F Create an example of how to test for correctly formed URLs\nconst tester = VerEx()\n    .startOfLine()\n    .then('http')\n    .maybe('s')\n    .then(':\u002F\u002F')\n    .maybe('www.')\n    .anythingBut(' ')\n    .endOfLine();\n\n\u002F\u002F Create an example URL\nconst testMe = 'https:\u002F\u002Fwww.google.com';\n\n\u002F\u002F Use RegExp object's native test() function\nif (tester.test(testMe)) {\n    alert('We have a correct URL'); \u002F\u002F This output will fire\n} else {\n    alert('The URL is incorrect');\n}\n\nconsole.log(tester); \u002F\u002F Outputs the actual expression used: \u002F^(http)(s)?(\\:\\\u002F\\\u002F)(www\\.)?([^\\ ]*)$\u002F\n```\n\n### Replacing strings\n\n```js\n\u002F\u002F Create a test string\nconst replaceMe = 'Replace bird with a duck';\n\n\u002F\u002F Create an expression that seeks for word \"bird\"\nconst expression = VerEx().find('bird');\n\n\u002F\u002F Execute the expression like a normal RegExp object\nconst result = expression.replace(replaceMe, 'duck');\n\n\u002F\u002F Outputs \"Replace duck with a duck\"\nalert(result);\n```\n\n### Shorthand for string replace\n\n```js\nconst result = VerEx().find('red').replace('We have a red house', 'blue');\n\n\u002F\u002F Outputs \"We have a blue house\"\nalert(result);\n```\n\n## Contributions\n\nPull requests are warmly welcome!\n\nClone the repo and fork:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FJSVerbalExpressions.git\n```\n\n### Style guide\n\nThe [Airbnb](https:\u002F\u002Fgithub.com\u002Fairbnb\u002Fjavascript) style guide is loosely used as a basis for creating clean and readable JavaScript code. Check [`.eslintrc`](.eslintrc).\n\nCheck out these slide decks for handy Github & git tips:\n\n- [Git and Github Secrets](https:\u002F\u002Fzachholman.com\u002Ftalk\u002Fgit-github-secrets\u002F)\n- [More Git and Github Secrets](https:\u002F\u002Fzachholman.com\u002Ftalk\u002Fmore-git-and-github-secrets\u002F)\n\n## Tools\n\n- \u003Chttps:\u002F\u002Fverbalregex.com> - it's a wrapper of JSVerbalExpressions; users can write down the code and compile to regex\n- \u003Chttps:\u002F\u002Fjsbin.com\u002Fmetukuzowi\u002Fedit?js,console> - JSBin Playground\n\n## Other Implementations\n\nYou can see an up to date list of all ports on [VerbalExpressions.github.io](https:\u002F\u002FVerbalExpressions.github.io).\n\n- [Ruby](https:\u002F\u002Fgithub.com\u002Fryan-endacott\u002Fverbal_expressions)\n- [C#](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FCSharpVerbalExpressions)\n- [Python](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FPythonVerbalExpressions)\n- [Java](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FJavaVerbalExpressions)\n- [Groovy](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FGroovyVerbalExpressions)\n- [PHP](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FPHPVerbalExpressions)\n- [Haskell](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FHaskellVerbalExpressions)\n- [Haxe](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FHaxeVerbalExpressions)\n- [C++](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FCppVerbalExpressions)\n- [Objective-C](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FObjectiveCVerbalExpressions)\n- [Perl](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FPerlVerbalExpressions)\n- [Swift](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002FSwiftVerbalExpressions)\n\nIf you would like to contribute another port (which would be awesome!), please [open an issue](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002Fimplementation\u002Fissues\u002Fnew) specifying the language in the [VerbalExpressions\u002Fimplementation repo](https:\u002F\u002Fgithub.com\u002FVerbalExpressions\u002Fimplementation\u002Fissues). Please don't open PRs for other languages against this repo.\n\n### Similar projects\n\nHere's a list of other similar projects that implement regular expression\nbuilders:\n\n- https:\u002F\u002Fgithub.com\u002FMaxArt2501\u002Fre-build\n- https:\u002F\u002Fgithub.com\u002Fmathiasbynens\u002Fregenerate","VerbalExpressions\u002FJSVerbalExpressions 是一个旨在简化 JavaScript 正则表达式构建过程的库。其核心功能是通过提供直观且易于理解的方法链来帮助开发者创建复杂的正则表达式，从而降低出错率并提高开发效率。该库支持在浏览器环境和 Node.js 环境下使用，同时兼容 ES6 模块系统。适用于需要频繁处理文本匹配、验证等场景，特别是对于那些对正则表达式不太熟悉或希望以更简洁方式编写正则表达式的前端与后端JavaScript开发者来说非常实用。",2,"2026-06-11 02:54:34","top_language"]