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
54578
2 天前

Learn regex the easy way

46063
5 个月前

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

Rust
39175
4 分钟前

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

Shell
10203
1 年前

🦕 常用正则大全, 支持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 个月前

Intuitive find & replace CLI (sed alternative)

Rust
6443
4 个月前

🚧 Regular Expression Excited!

TypeScript
5818
3 年前

High-performance regular expression matching library

C++
5074
5 个月前

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

4794
3 年前
yoav-lavi/melody

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

Rust
4699
9 个月前

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

Vue
4529
2 年前
unjs/magic-regexp

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

TypeScript
4125
9 小时前
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 年前