Computing - Regular Expressions
What regular expression is this?
![PHOTO REGEX AB](/assets/img/attachments/regex-ab.png)
\[ab\]
![PHOTO REGEX A
B](/assets/img/attachments/regex-a-or-b.png) What regular expression is this?
\[a|b\]
What regular expression is this?
![PHOTO REGEX A+](/assets/img/attachments/regex-a-plus.png)
\[a+\]
What regular expression is this?
![PHOTO REGEX A*](/assets/img/attachments/regex-a-star.png)
\[a*\]
Visualise the finite state machine for $ab$?
Visualise the finite state machine for $a \vert b$?
![PHOTO REGEX A | B](/assets/img/attachments/regex-a-or-b.png) |
Visualise the finite state machine for $a+$?
Visualise the finite state machine for $a*$?
What is the precedence for regular expressions?
()
*
+
?
|