Repository navigation

#

Regular expression

Created by Stephen Cole Kleene

发布于 1950

维基百科

A regular expression (shortened as regex or regexp), sometimes referred to as rational expression, is a sequence of characters that specifies a match pattern in text. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation.

Regular expression techniques are developed in theoretical computer science and formal language theory. They are used in search engines, in search and replace dialogs of word processors and text editors, in text processing utilities such as sed and AWK, and in lexical analysis. Regular expressions are also supported in many programming languages.

Different syntaxes for writing regular expressions have existed since the 1980s, one being the POSIX standard and another, widely used, being the Perl syntax.

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

TypeScript
8648
1 年前
pemistahl/grex

A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases

Rust
7554
6 个月前

🚧 Regular Expression Excited!

TypeScript
5818
3 年前
yoav-lavi/melody

Melody is a language that compiles to regular expressions and aims to be more readable and maintainable

Rust
4699
9 个月前
unjs/magic-regexp

A compiled-away, type-safe, readable RegExp alternative

TypeScript
4125
11 小时前
TypeScript
4091
4 个月前

Learn RegEx step by step, from zero to advanced.

TypeScript
3823
2 个月前

An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.

Rust
3760
5 天前

Extended JavaScript regular expressions

JavaScript
3327
2 个月前

🎃 常用正则表达式 - 收集一些在平时项目开发中经常用到的正则表达式。

3133
6 年前

🇨 翻译: 学习正则表达式的简单方法

2676
3 年前

regular expression library

C
2465
4 个月前

A regular expression to match all Emoji-only symbols as per the Unicode Standard.

JavaScript
1818
1 年前

A new, portable, regular expression language

Rust
1321
8 个月前

A full-featured regex engine in pure Go based on the .NET engine

Go
1110
5 个月前

Blazing fast and accurate glob matcher written JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions. Used by GraphQL, Jest, Astro, Snowpack, Storybook, bulma, Serverless, fdir, Netlify, AWS Amplify, Revogrid, rollup, routify, open-wc, imba, ava, docusaurus, fast-glob, globby, chokidar, anymatch, cloudflare/miniflare, pts, and more than 5 million projects! Please follow picomatch's author: https://github.com/jonschlinkert

JavaScript
1093
1 个月前

🍫 A collection of common regular expressions for Go

Go
898
6 年前

Optimised tokenizer/lexer generator! 🐄 Uses /y for performance. Moo.

JavaScript
862
2 年前

ESLint plugin for finding regex mistakes and style guide violations.

TypeScript
732
1 天前