Skip to content

Commit 8f5e5f7

Browse files
authored
Merge pull request #4090 from shaedrich/regex
Add topic "RegExp"
2 parents a01f72e + 7c7d788 commit 8f5e5f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

topics/regular-expression/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
aliases: regex, regexp, regular-expressions
3+
created_by: Stephen Cole Kleene
4+
display_name: Regular expression
5+
released: 1950
6+
short_description: A regular expression is a sequence of characters that specifies a match pattern in text.
7+
topic: regular-expression
8+
wikipedia_url: https://en.wikipedia.org/wiki/Regular_expression
9+
related: pattern-matching, wildcard, glob, grep, awk, sed
10+
---
11+
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.
12+
13+
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.
14+
15+
Different syntaxes for writing regular expressions have existed since the 1980s, one being the POSIX standard and another, widely used, being the Perl syntax.

0 commit comments

Comments
 (0)