Computer Science > 4.4.2 - ToC (Regular Expressions) > Flashcards
What are the 5 main metacharacters and what are there description
1- * (0 or more repetitions)
2- + (1 or more repetitions)
3- ? (0 or 1 repetitions, ie optional)
4- | (alternation, ie or)
5- ( ) to group regular expressions.
Regular expressions and FSMs are equivalent
ways of defining a regular language. (True False)
True
What is a regular language
Any language that an FSM will accept or that can be represented as a regular expression
What is meant by a regualar language
Any formal language that comprises of a set of strings, determined by an alphabet, that an FSM will accept