Any Rule

screenshot of Any Rule
express

常用正则大全, 支持web / vscode / idea / Alfred Workflow多平台

Overview:

The "正则大全" project is a comprehensive collection of regular expressions (regex) with 84 patterns currently indexed. This versatile tool can be installed across various platforms including web, VS Code, IntelliJ IDEA, and as an Alfred Workflow. The project is licensed under MIT and has CircleCI integration for automated testing. It aims to make regex patterns more accessible and easier to use for developers across different environments.

Features:

  • Cross-Platform Compatibility: Supports web, VS Code, IntelliJ IDEA, and Alfred Workflow.
  • Extensive Collection: Includes 84 regex patterns for different data validation requirements.
  • Interactive Learning: Provides visual explanations for each regex pattern for easier understanding.
  • Community Contributions: Allows other developers to contribute new regex patterns to the collection.
  • Version Control: Maintains a clear versioning system for updates and enhancements.
  • Easy Installation: Simple steps for installing the tool on different platforms.
  • Regular Updates: Regularly updates the collection with new regex patterns based on user feedback.

Web Version:

  1. Visit the web version here.
  2. Explore the various regex patterns available on the website.

VS Code Extension:

  1. Search for "any-rule" in the VS Code Extension Marketplace.
  2. Follow the on-screen instructions to install the extension.
  3. Access the regex patterns using the extension commands.

IntelliJ IDEA Integration:

  1. Install the Alfred Workflow version of "正则大全".
  2. Use the provided commands within IntelliJ IDEA to access the regex patterns.

Community Contributions:

  1. Developers can contribute new regex patterns by following the guidelines in the project repository.
  2. Ensure the regex patterns are added to the correct file packages/www/src/RULES.js.
  3. Run npm run test:rules to test the new patterns.
  4. Update the README.md using npm run build:md.
  5. Submit the contributions to the develop branch for review and inclusion.

Summary:

The "正则大全" project offers a valuable resource for developers needing to work with regular expressions across different platforms. With its comprehensive collection, interactive features, and community involvement, it aims to simplify the usage of regex patterns in various data validation scenarios. By providing easy installation guides and encouraging contributions, the project continues to evolve and expand its utility for developers worldwide.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.