A regular expression describes a language using three ...
Regular Expressions
A regular expression describes a language using three operations.
Regular Expressions
A regular expression (RE) describes a language. It uses the three regular operations. These are called union/or, concatenation and star. Brackets ( and ) are used for grouping, just as in normal math.
Goddard 2: 2
Union
The symbol + means union or or. Example:
0+1 means either a zero or a one.
Goddard 2: 3
Concatenation
The concatenation of two REs is obtained by writing the one after the other. Example:
(0 + 1) 0 corresponds to {00, 10}.
(0 + 1) (0 + ) corresponds to {00, 0, 10, 1}.
Goddard 2: 4
Star
The symbol is pronounced star and means zero or more copies. Example:
a corresponds to any string of a's: {, a, aa, aaa, . . .}.
(0 + 1) corresponds to all binary strings.
Goddard 2: 5
Example
An RE for the language of all binary strings of length at least 2 that begin and end in the same symbol.
Goddard 2: 6
Example
An RE for the language of all binary strings of length at least 2 that begin and end in the same symbol.
0(0 + 1)0 + 1(0 + 1)1 Note precedence of regular operators: star always refers to smallest piece it can, or to largest piece it can.
Goddard 2: 7
Example
Consider the regular expression ((0 + 1)1 + ) (00) 00
Goddard 2: 8
................
................
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
- about the tutorial
- a regular expression describes a language using three
- working in the sabre system
- transition mcitp sql serv 08 bi dev to bi platform advanced
- module 3 adding code to a report module overview
- sql tutorial
- crystal reports date to string
- centricity reporting 101
- adventure works dwh and reporting solution overview for
- galileo formats travelport
Related searches
- javascript regular expression match
- regular expression in java
- regular expression in java tutorial
- java regular expression example
- regular expression interactive tutorial
- javascript regular expression replace
- regular expression blank
- regular expression remove blank lines
- regular expression case insensitive match
- regular expression empty line
- regular expression special character
- regular expression remove special characters