Global Information Lookup Global Information

Regular expression information


Blue highlights show the match results of the regular expression pattern: /r[aeiou]+/g (lower case r followed by one or more lower-case vowels).

A regular expression (shortened as regex or regexp),[1] sometimes referred to as rational expression,[2][3] 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.

The concept of regular expressions began in the 1950s, when the American mathematician Stephen Cole Kleene formalized the concept of a regular language. They came into common use with Unix text-processing utilities. Different syntaxes for writing regular expressions have existed since the 1980s, one being the POSIX standard and another, widely used, being the Perl syntax.

Regular expressions 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 supported in many programming languages. Library implementations are often called an "engine",[4][5] and many of these are available for reuse.

  1. ^ Goyvaerts, Jan. "Regular Expression Tutorial - Learn How to Use Regular Expressions". Regular-Expressions.info. Archived from the original on 2016-11-01. Retrieved 2016-10-31.
  2. ^ Mitkov, Ruslan (2003). The Oxford Handbook of Computational Linguistics. Oxford University Press. p. 754. ISBN 978-0-19-927634-9. Archived from the original on 2017-02-28. Retrieved 2016-07-25.
  3. ^ Lawson, Mark V. (17 September 2003). Finite Automata. CRC Press. pp. 98–100. ISBN 978-1-58488-255-8. Archived from the original on 27 February 2017. Retrieved 25 July 2016.
  4. ^ "How a Regex Engine Works Internally". regular-expressions.info. Retrieved 24 February 2024.
  5. ^ "How Do You Actually Use Regex?". howtogeek.com. Retrieved 24 February 2024.

and 25 Related for: Regular expression information

Request time (Page generated in 0.8476 seconds.)

Regular expression

Last Update:

A regular expression (shortened as regex or regexp), sometimes referred to as rational expression, is a sequence of characters that specifies a match...

Word Count : 8915

Perl Compatible Regular Expressions

Last Update:

Perl Compatible Regular Expressions (PCRE) is a library written in C, which implements a regular expression engine, inspired by the capabilities of the...

Word Count : 2561

ReDoS

Last Update:

regular expression denial of service (ReDoS) is an algorithmic complexity attack that produces a denial-of-service by providing a regular expression and/or...

Word Count : 1762

Comparison of regular expression engines

Last Update:

This is a comparison of regular expression engines. Formerly called Regex++. One of fuzzy regular expression engines. Included since version 2.13.0. ICU4J...

Word Count : 638

Regular language

Last Update:

language theory, a regular language (also called a rational language) is a formal language that can be defined by a regular expression, in the strict sense...

Word Count : 3414

Grep

Last Update:

data sets for lines that match a regular expression. Its name comes from the ed command g/re/p (global / regular expression search / and print), which has...

Word Count : 1457

Expression

Last Update:

something that will return a value Regular expression, a means of matching strings of text in computing Expression marks, in music, notating the musical...

Word Count : 331

Parsing expression grammar

Last Update:

as a regular expression which does not match as parsing expression: [ab]?[bc][cd] is both a valid regular expression and a valid parsing expression. As...

Word Count : 6426

Regular

Last Update:

equations Regular algebra, or Kleene algebra Regular code, an algebraic code with a uniform distribution of distances between codewords Regular expression, a...

Word Count : 962

Regular grammar

Last Update:

\{a^{i}b^{i}:i\geq 0\}}, the paradigmatic non-regular linear language. Regular expression, a compact notation for regular grammars Regular tree grammar, a generalization...

Word Count : 979

Lexical analysis

Last Update:

syntax. The lexical syntax is usually a regular language, with the grammar rules consisting of regular expressions; they define the set of possible character...

Word Count : 3323

Google Code Search

Last Update:

custom-built, denial-of-service resistant regular expression engine. In March 2010, the code of RE2, the regular expression engine used in Google Code Search...

Word Count : 461

Brzozowski derivative

Last Update:

compute the derivative of a generalized regular expression. Even though originally studied for regular expressions, the definition applies to arbitrary formal...

Word Count : 1336

Induction of regular languages

Last Update:

the mathematical formalisms called "finite automaton", "regular grammar", or "regular expression", all of which have the same expressive power. Since the...

Word Count : 3272

AWK

Last Update:

associative arrays (that is, arrays indexed by key strings), and regular expressions. While AWK has a limited intended application domain and was especially...

Word Count : 4666

CUBRID

Last Update:

Conditional Expressions". Archived from the original on 4 June 2013. Retrieved 11 February 2013. "CUBRID 11 Manual - Regular Expressions Functions and...

Word Count : 1915

Star height

Last Update:

for the structural complexity of regular expressions and regular languages. The star height of a regular expression equals the maximum nesting depth of...

Word Count : 1345

Sed

Last Update:

("quick editor", 1965–66). It was one of the earliest tools to support regular expressions, and remains in use for text processing, most notably with the substitution...

Word Count : 2612

Metacharacter

Last Update:

program, such as a shell interpreter or a regular expression (regex) engine. In POSIX extended regular expressions, there are 14 metacharacters that must...

Word Count : 462

Ken Thompson

Last Update:

programming language. Other notable contributions included his work on regular expressions and early computer text editors QED and ed, the definition of the...

Word Count : 2509

SNOBOL

Last Update:

object-oriented languages such as JavaScript whose patterns are known as regular expressions. In addition SNOBOL4 strings generated during execution can be treated...

Word Count : 2561

Nondeterministic finite automaton

Last Update:

used in the implementation of regular expressions: Thompson's construction is an algorithm for compiling a regular expression to an NFA that can efficiently...

Word Count : 4498

Delimiter

Last Update:

escape / in Perl regular expressions, leading to sequences such as "\/\/"); text becomes difficult to parse through regular expression they require a mechanism...

Word Count : 2389

Tilde

Last Update:

integer bitwise like in C. =~ and ==~ can in Groovy be used to match a regular expression. In Haskell, the tilde is used in type constraints to indicate type...

Word Count : 6894

YARA

Last Update:

rule-based approach to create descriptions of malware families based on regular expression, textual or binary patterns. A description is essentially a YARA rule...

Word Count : 169

PDF Search Engine © AllGlobal.net