Computing - Regular Expressions


PHOTO REGEX AB What regular expression is this?


\[ab\]
![PHOTO REGEX A B](/assets/img/attachments/regex-a-or-b.png) What regular expression is this?

\[a|b\]

PHOTO REGEX A+ What regular expression is this?


\[a+\]

PHOTO REGEX A* What regular expression is this?


\[a*\]

Visualise the finite state machine for $ab$?


PHOTO REGEX 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+$?


PHOTO REGEX A+

Visualise the finite state machine for $a*$?


PHOTO REGEX A*

What is the precedence for regular expressions?


  • ()
  • *
  • +
  • ?
  • |



Related posts