10 likes | 92 Views
Learn the definition and rules of regular expressions in a given alphabet Sigma. Discover how to derive primitive expressions and apply various operations like union, concatenation, and closure.
E N D
Definition of re Let Sigma be a given alphabet. Then 1. , , and a are all regular expressions. These are called primal regular expressions. 2. If r1 and r2 are regular expressions, so are r1 + r2, r1. r2, r1*, and (r1). 3. A string is a regular expression if and only if it can be derived from the primitive regular expressions by a finite number of applications of rules in (2). union of two re’s is a re concatenation of two re’s is a re closure of a re’s is a re a re may be parenthesized