# Regular Expressions

## About

- Level: Beginner to Intermediate
- Lectures: 10 hours
- Self-study: 5 hours
- Exercises: 60
- Lines of code to write: 89
- Format: e-learning + weekly online meeting with the instructor
- Language: English or Polish

## Description

Use regular expressions to find, extract, validate, and transform text. Build patterns step by step, explore Python's `re` module, and test the results against representative inputs. Case studies cover logs, data preparation, and changes across source files.

## Advantages

Automate repetitive text work while keeping patterns understandable. Learn how grouping, flags, and quantifiers affect matching, and how to check edge cases and avoid unnecessarily expensive searches.

## Target Audience

- Python users working with text files, logs, or data cleaning.
- Developers building input checks and extraction tools.
- Engineers automating repeated changes across a codebase.

## Format

Learn through short videos and worked examples, then apply each topic in coding exercises. Automated checks help you test your solutions, and a progress spreadsheet helps you see what to work on next.

Weekly online meetings give you time for questions, code reviews, and working through difficult exercises with the instructor. Downloadable code, exercise templates, and reference notes support your independent practice.

Our trainers prepare the teaching materials from their professional experience. The materials have been developed since 2015, with more than 28,000 automated tests checking the code examples. Training is available in English or Polish.

## Course Outline

1. Introduction to Regular Expressions:

   - History and applications of regex
   - Basic concepts
2. Regular Expression Syntax:

   - Literals
   - Character classes, alternations, enumerations, and ranges
   - Anchors
   - Negations
   - Quantifiers: greedy and lazy
   - Groups: named, positional, non-capturing
   - Backreferences
   - Flags and their usage
3. Python `re` Module:

   - `findall`, `finditer`, `search`, `match`, `sub`, `split`, `compile`
   - Exception handling and debugging regular expressions
4. Case Studies:

   - Searching and extracting data
   - Input data validation
   - Text manipulation
   - Code refactoring
   - Regular expression optimization
   - Pattern testing and validation
5. Practical project

## Our Experience

AATC trainers have taught software engineering since 2015, delivering more than 11,000 hours of training to over 32,000 students worldwide. The exercises draw on that teaching experience and professional projects.

## Prerequisites

- Basic knowledge of Python programming
- Familiarity with using an IDE (e.g., PyCharm, VSCode)
- Familiarity with using version control systems (e.g., Git)

## Setup

- Newest version of Python
- IDE of your choice (e.g., PyCharm, VSCode)
- Git installed and configured
- GitHub account
- Web browser (e.g., Chrome, Firefox, Safari, etc.)

## Related Courses

- [Python Basics](<https://aatc.pl/software/python/basics/index.md>)
- [Python Intermediate](<https://aatc.pl/software/python/intermediate/index.md>)
- [Python Advanced](<https://aatc.pl/software/python/advanced/index.md>)
- [Design Patterns](<https://aatc.pl/software/engineering/design-patterns/index.md>)
- [Profiling](<https://aatc.pl/software/engineering/profiling/index.md>)
- [Refactoring](<https://aatc.pl/software/engineering/refactoring/index.md>)
- [Testing](<https://aatc.pl/software/engineering/testing/index.md>)
- [DevOps](<https://aatc.pl/software/engineering/devops/index.md>)
- [Regular Expressions](<https://aatc.pl/software/engineering/regex/index.md>)
- [All Courses](<https://aatc.pl/software/index.md>)

## Date

This course is scheduled on demand. Contact us with your preferred dates and group size so we can check availability and arrange a suitable session.

## Contact

Email [info@aatc.pl](<mailto:info@aatc.pl>) for help with program details, preparation, or booking.

## Apply

To apply, email [info@aatc.pl](<mailto:info@aatc.pl>) with your name, the program you are interested in, and your preferred dates.
