Skip to Main Content
| Brooklyn College Library & Academic IT |CISC Department

CISC 3130 Data Structures: Regular Expressions

Professor Chuang Spring 2020 OER

Introduction

Regular expression "regex" is a particular notation used for pattern matching on strings. For example, when entering in email addresses and passwords into form input fields, you can use regex to specify the conditions that the text must match. 

Regex is also frequently used in text parsing, compiler design, and web scraping amongst other applications.

References:

https://regexone.com/

https://regex101.com/

https://regexr.com/

 

Finite State Automata (FSA)

For every regular expression, there is a finite automata. FSA is a simple diagram of circles and lines that represent various possible states.