Regular Expressions - Stanford University
Regular Expressions
PPrroobblelemm SSeett FFoouurr isis dduuee uussiningg aa lalattee ppeerrioiodd inin tthhee bbooxx uupp ffrroonntt..
Concatenation
The concatenation of two languages L1 and L2 over the alphabet is the language
LL = { wx * | w L x L }
Intuitively, the set of all strings formed by concatenating some string from L and some string from L.
Conceptually similar to the Cartesian product of two sets, only with strings.
Language Exponentiation
We can define what it means to "exponentiate" a language as follows:
L0 = { }
The set containing just the empty string. Idea: Any string formed by concatenating zero
strings together is the empty string.
Ln+1 = LLn
Idea: Concatenating (n+1) strings together works by concatenating n strings, then concatenating one more.
The Kleene Closure
An important operation on languages is the Kleene Closure, which is defined as
L* =
Li
i = 0
Mathematically:
w L* iff n . w Ln
Intuitively, all possible ways of concatenating any number of copies of strings in L together.
Closure Properties
The regular languages are closed under the following operations:
Complementation Union Intersection Concatenation Kleene closure
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- patterns automata and regular expressions stanford university
- understanding regular expressions special characters and patterns cisco
- regular expression tutorial by glen mcgregor
- regular expressions for natural language processing
- regular expressions stanford university
- 1 regular expression tutorial
- regular expressions the complete tutorial by jan goyvaerts
- c is evolving university of alaska system
- lecture 11b regular expressions university of washington
- lecture 18 regular expressions cmu school of computer science
Related searches
- stanford university philosophy department
- stanford university plato
- stanford university encyclopedia of philosophy
- stanford university philosophy encyclopedia
- stanford university philosophy
- regular expressions js
- using regular expressions in java
- regular expressions tutorial
- regular expressions in java
- java regular expressions tutorial
- stanford university ein number
- stanford university master computer science