| Regular Expressions |
Article Index for Regular |
Website Links For Regular |
Information AboutRegular Expressions |
| CATEGORIES ABOUT REGULAR EXPRESSION | |
| formal languages | |
| pattern matching | |
| programming language topics | |
|
BASIC CONCEPTS | |||
|   | (''concatenation'') ''RS'' Denoting The Set { αβ α In ''R'' And β In ''S'' } For Example {"ab", "c"}{"d", "ef"} | {"abd", "abef", "cd", "cef"} |
|
|   | The Formal Definition Of Regular Expressions Is Purposely Parsimonious And Avoids Defining The Redundant Quantifiers And +, Which Can Be Expressed As Follows: ''a''<sup>+</sup> | aa, and ''a'' = (εa) Sometimes the complement operator ~ is added ~''R'' denotes the set of all strings over Σ that are not in ''R'' The complement operator is redundant: it can always be expressed by only using the other operators |
|
|   | { Valign | "top" |
|
|   | { Class | "wikitable" |
|
| |||
|   | :"( | "cC" class="copylinks" target="_blank">{Link without Title} at)( {Link without Title} og)" matches "cat", "Cat", "dog" and "Dog" |
|
|   | The Other Algorithm Is To Match The Pattern Against The Input String By | "http://wwwinformationdelightinfo/encyclopedia/entry/backtracking" class="copylinks">Backtracking (This algorithm is sometimes called NFA, but this terminology is highly confusing) Its running time can be exponential, which simple implementations exhibit when matching against expressions like "(aaa)b" that contain both alternation and unbounded quantification and force the algorithm to consider an exponential number of subcases More complex implementations identify and speed up various common cases where they would otherwise run slowly |
|
|
|