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

46063
5 个月前
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 年前

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

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

TypeScript
4125
11 小时前

Extended JavaScript regular expressions

JavaScript
3327
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
2955
1 年前

regular expression library

C
2465
4 个月前

PHP Regular expressions made easy

PHP
2413
5 年前

Create random strings that match a given regular expression.

JavaScript
1858
6 个月前

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

JavaScript
1818
1 年前

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
1422
7 个月前

🦉 human-readable regular expressions

PHP
1350
1 年前