Computing - Regular Expressions

2021-01-11
1 min read
PHOTO REGEX AB What regular expression is this??

$$ ab $$

PHOTO REGEX A|B 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|b$??

PHOTO REGEX A|B

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??
  • ()
  • *
  • +
  • ?
  • |

Metadata
date: 2021-01-11 08:41
tags:
- '@?computing'
- '@?regular-languages'
- '@?school'
- '@?public'
title: Computing - Regular Expressions
Attachments