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.

Learn regex the easy way

45987
23 天前
pemistahl/grex

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

Rust
7463
2 个月前

🚧 Regular Expression Excited!

TypeScript
5799
3 年前

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 个月前
unjs/magic-regexp

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

TypeScript
4052
3 天前

Extended JavaScript regular expressions

JavaScript
3332
2 个月前

Highly optimized wildcard and glob matching library. Faster, drop-in replacement to minimatch and multimatch. Used by square, webpack, babel core, yarn, jest, ract-native, taro, bulma, browser-sync, stylelint, nyc, ava, and many others! Follow micromatch's author: https://github.com/jonschlinkert

JavaScript
2895
8 个月前

regular expression library

C
2416
5 天前

PHP Regular expressions made easy

PHP
2412
5 年前

Create random strings that match a given regular expression.

JavaScript
1847
1 个月前

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

JavaScript
1794
8 个月前

A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).

C
1405
3 个月前

🦉 human-readable regular expressions

PHP
1348
8 个月前