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.

ripgrep recursively searches directories for a regex pattern while respecting your gitignore

Rust
51760
9 天前

Learn regex the easy way

45987
23 天前

A simple, fast and user-friendly alternative to 'find'

Rust
37558
17 天前

⚡ From finding text to search and replace, from sorting to beautifying text and more 🎨

Shell
10189
10 个月前

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

TypeScript
8630
9 个月前
pemistahl/grex

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

Rust
7463
2 个月前

Intuitive find & replace CLI (sed alternative)

Rust
6207
10 小时前

🚧 Regular Expression Excited!

TypeScript
5799
3 年前

High-performance regular expression matching library

C++
4957
17 天前

Regular expressions that match the mobile phone number in mainland China. / 一组匹配中国大陆手机号码的正则表达式。

4791
3 年前
yoav-lavi/melody

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

Rust
4663
5 个月前

The code for iHateregex.io 😈 - The Regex Cheat Sheet

Vue
4510
1 年前
unjs/magic-regexp

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

TypeScript
4052
3 天前
TypeScript
4010
8 天前

Learn RegEx step by step, from zero to advanced.

TypeScript
3702
9 天前

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

Rust
3674
5 个月前

Extended JavaScript regular expressions

JavaScript
3332
2 个月前

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

3119
6 年前